Skip to content
JS
Package

string-trim-spaces-only

Like String.trim() but you can choose granularly what to trim

v5.3.1, 6 Sept 2026MITESM onlyTypes: Bundled
$ npm install string-trim-spaces-only

Key numbers

As of 25 Sept 2026
Weekly downloads
176.5k
+52% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
18 days ago
v5.3.1
GitHub stars
214
25 forks
Open issues / PRs
1 / 0
Contributors
-
Commits, last 52 weeks
1,699

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300k400kSept 2025Mar 2026Sept 2026High 303.6k (18 Aug 2026)Low 131.5k (14 Oct 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

176,466 downloads last week, 865,565 in the last month. The 12-month change of +52% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.3.1, 6 Sept 202618 days ago
First published
-
Last push to GitHub
21 Sept 20263 days before the snapshot
Repository archived
No
Open issues
1
Open pull requests
0
Commits, last 52 weeks
1,699
Dependents on npm
1

Major versions

-

Recent releases

-

Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18.20.8
Runtimes
-
Unpacked size (npm)
18 kB
Dependencies (1)
codsen-format-diagnostic-value
npm install string-trim-spaces-only
  • jsDelivrhttps://cdn.jsdelivr.net/npm/string-trim-spaces-only@5.3.1/
  • unpkghttps://unpkg.com/string-trim-spaces-only@5.3.1/
  • esm.shhttps://esm.sh/string-trim-spaces-only@5.3.1
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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