Skip to content
JS
Package

oneline

Write nice template literals with newlines, but format as a single-line string

v2.0.0, 16 Mar 2025MITESM + CommonJSTypes: Bundled
$ npm install oneline

Key numbers

As of 25 Sept 2026
Weekly downloads
634k
+247% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v2.0.0
GitHub stars
8
2 forks
Open issues / PRs
0 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0250k500k750k1mSept 2025Mar 2026Sept 2026High 903.2k (25 Aug 2026)Low 117.3k (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.

634,041 downloads last week, 3,186,348 in the last month. The 12-month change of +247% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
07 in total
Latest version
2.0.0, 16 Mar 20251 year ago
First published
30 Dec 2015
Last push to GitHub
21 Jan 2026246 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
29

Major versions

  1. v2 first release 2.0.0, 16 Mar 2025
  2. v1 first release 1.0.0, 31 Oct 2018
  3. v0 first release 0.0.0, 30 Dec 2015

Recent releases

VersionPublished
2.0.016 Mar 2025
1.0.416 Mar 2025
1.0.39 Apr 2019
1.0.25 Mar 2019
1.0.15 Mar 2019
1.0.031 Oct 2018
0.0.030 Dec 2015
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.0.0
Runtimes
-
Unpacked size (npm)
4.5 kB
Dependencies (0)
None
npm install oneline
  • jsDelivrhttps://cdn.jsdelivr.net/npm/oneline@2.0.0/
  • unpkghttps://unpkg.com/oneline@2.0.0/
  • esm.shhttps://esm.sh/oneline@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.