Deprecated on npm
Use String.prototype.trim() insteadKey numbers
As of 25 Sept 2026
- Weekly downloads
- 1.7m
- -29% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 5 years ago
- v1.0.1
- GitHub stars
- -
- Open issues / PRs
- - / -
- Contributors
- -
- Commits, last 52 weeks
- -
Downloads
Last week 2026-09-15 to 2026-09-21
1,670,875 downloads last week, 6,575,372 in the last month. The 12-month change of -29% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 05 in total
- Latest version
- 1.0.1, 1 Apr 20215 years ago
- First published
- 12 Mar 2013
- Last push to GitHub
- -
- Repository archived
- -
- Open issues
- -
- Open pull requests
- -
- Commits, last 52 weeks
- -
- Dependents on npm
- -
Major versions
- v1 first release 1.0.0, 13 Nov 2020
- v0 first release 0.0.1, 12 Mar 2013
Recent releases
| Version | Published |
|---|---|
| 1.0.1 | 1 Apr 2021 |
| 1.0.0 | 13 Nov 2020 |
| 0.0.3 | 5 Nov 2020 |
| 0.0.2 | 5 Nov 2020 |
| 0.0.1 | 12 Mar 2013 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 3.3 kB
- Dependencies (0)
- None
npm install trim- jsDelivr
https://cdn.jsdelivr.net/npm/trim@1.0.1/ - unpkg
https://unpkg.com/trim@1.0.1/ - esm.sh
https://esm.sh/trim@1.0.1
Indexability: Not indexed (discovery only): deprecated; GitHub data not fetched yet; no category.