Package
strip-comments
Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 8.8m
- +47% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 6 years ago
- v2.0.1
- GitHub stars
- -
- Open issues / PRs
- - / -
- Contributors
- -
- Commits, last 52 weeks
- -
Downloads
Last week 2026-09-15 to 2026-09-21
8,750,949 downloads last week, 33,870,102 in the last month. The 12-month change of +47% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 021 in total
- Latest version
- 2.0.1, 13 Nov 20196 years ago
- First published
- 10 Feb 2014
- Last push to GitHub
- -
- Repository archived
- -
- Open issues
- -
- Open pull requests
- -
- Commits, last 52 weeks
- -
- Dependents on npm
- 453
Major versions
- v2 first release 2.0.0, 6 Nov 2019
- v1 first release 1.0.0, 24 Mar 2018
- v0 first release 0.1.0, 10 Feb 2014
Recent releases
| Version | Published |
|---|---|
| 2.0.1 | 13 Nov 2019 |
| 2.0.0 | 6 Nov 2019 |
| 1.0.2 | 3 May 2018 |
| 1.0.1 | 24 Mar 2018 |
| 1.0.0 | 24 Mar 2018 |
| 0.4.4 | 14 Feb 2016 |
| 0.4.3 | 25 Dec 2015 |
| 0.4.2 | 11 Dec 2015 |
| 0.4.1 | 4 Nov 2015 |
| 0.4.0 | 4 Nov 2015 |
| 0.3.4 | 22 Oct 2015 |
| 0.3.2 | 2 Sept 2014 |
| 0.3.1 | 2 Sept 2014 |
| 0.3.0 | 2 Sept 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=10
- Runtimes
- -
- Unpacked size (npm)
- 26 kB
- Dependencies (0)
- None
npm install strip-comments- jsDelivr
https://cdn.jsdelivr.net/npm/strip-comments@2.0.1/ - unpkg
https://unpkg.com/strip-comments@2.0.1/ - esm.sh
https://esm.sh/strip-comments@2.0.1
Indexability: Not indexed (discovery only): GitHub data not fetched yet.