Package
condense-newlines
Replace extraneous newlines with a single newline, or pass a specified number of newlines to use.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 1m
- +24% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 3
- Direct, from package.json
- Last release
- 10 years ago
- v0.2.1
- GitHub stars
- 7
- 1 forks
- Open issues / PRs
- 1 / 2
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
1,042,734 downloads last week, 5,024,944 in the last month. The 12-month change of +24% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 03 in total
- Latest version
- 0.2.1, 23 Apr 201610 years ago
- First published
- 12 Jul 2014
- Last push to GitHub
- 22 Aug 20202,224 days before the snapshot
- Repository archived
- No
- Open issues
- 1
- Open pull requests
- 2
- Commits, last 52 weeks
- 0
- Dependents on npm
- 15
Major versions
- v0 first release 0.1.0, 12 Jul 2014
Recent releases
| Version | Published |
|---|---|
| 0.2.1 | 23 Apr 2016 |
| 0.2.0 | 8 Mar 2016 |
| 0.1.0 | 12 Jul 2014 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=0.10.0
- Runtimes
- -
- Unpacked size (npm)
- -
- Dependencies (3)
kind-ofis-whitespaceextend-shallow
npm install condense-newlines- jsDelivr
https://cdn.jsdelivr.net/npm/condense-newlines@0.2.1/ - unpkg
https://unpkg.com/condense-newlines@0.2.1/ - esm.sh
https://esm.sh/condense-newlines@0.2.1
Indexability: Indexed.