Skip to content
JS
Package

smartwrap

Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words.

v4.0.0, 20 Sept 2026MITESM + CommonJSTypes: BundledCLI tools and terminal utilitiesTypeScript tooling
$ npm install smartwrap

Key numbers

As of 25 Sept 2026
Weekly downloads
589.2k
+57% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
3
Direct, from package.json
Last release
4 days ago
v4.0.0
GitHub stars
11
8 forks
Open issues / PRs
1 / 1
Contributors
-
Commits, last 52 weeks
21

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 777.7k (4 Aug 2026)Low 149.7k (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.

589,238 downloads last week, 2,819,526 in the last month. The 12-month change of +57% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
226 in total
Latest version
4.0.0, 20 Sept 20264 days ago
First published
19 May 2017
Last push to GitHub
20 Sept 20264 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
1
Commits, last 52 weeks
21
Dependents on npm
11

Major versions

  1. v4 first release 4.0.0, 20 Sept 2026
  2. v3 first release 3.0.0, 20 Sept 2026
  3. v2 first release 2.0.0, 29 Feb 2020
  4. v1 first release 1.0.0, 19 May 2017

Recent releases

VersionPublished
4.0.020 Sept 2026
3.0.020 Sept 2026
2.0.215 May 2021
2.0.19 Mar 2020
2.0.029 Feb 2020
1.2.525 Feb 2020
1.2.425 Feb 2020
1.2.314 Feb 2020
1.2.213 Feb 2020
1.2.19 Jan 2020
1.2.012 Nov 2019
1.1.23 Nov 2019
1.1.13 Nov 2019
1.1.028 Aug 2019
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=22
Runtimes
-
Unpacked size (npm)
47 kB
Dependencies (3)
yargsbreakwordstrip-ansi
npm install smartwrap
  • jsDelivrhttps://cdn.jsdelivr.net/npm/smartwrap@4.0.0/
  • unpkghttps://unpkg.com/smartwrap@4.0.0/
  • esm.shhttps://esm.sh/smartwrap@4.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
pintor9.8k-3 months agoESM + CommonJS-
@openclaw/libterminal1m-2 days agoESM only-
@oh-my-pi/pi-tui73.9k-1 day agoESM only-
bun-pty314.5k-3 months agoESM only-
@inquirer/type43.6m-22 days agoESM only-
@inquirer/figures37.9m-22 days agoESM only-
@inquirer/prompts27.9m-17 days agoESM only-
clipanion3.6m-2 years agoESM + CommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.