Skip to content
JS
Package

condense-newlines

Replace extraneous newlines with a single newline, or pass a specified number of newlines to use.

v0.2.1, 23 Apr 2016MITCommonJSTypes: NoneDocumentation tooling
$ npm install condense-newlines

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
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1.4m (25 Aug 2026)Low 491.2k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v0 first release 0.1.0, 12 Jul 2014

Recent releases

VersionPublished
0.2.123 Apr 2016
0.2.08 Mar 2016
0.1.012 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/condense-newlines@0.2.1/
  • unpkghttps://unpkg.com/condense-newlines@0.2.1/
  • esm.shhttps://esm.sh/condense-newlines@0.2.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.