Package
string.prototype.trim
ES5 spec-compliant shim for String.prototype.trim
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 63.1m
- +88% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 8
- Direct, from package.json
- Last release
- 3 months ago
- v1.2.11
- GitHub stars
- 13
- 3 forks
- Open issues / PRs
- 1 / 0
- Contributors
- 3
- Commits, last 52 weeks
- 8
Downloads
Last week 2026-09-15 to 2026-09-21
63,059,397 downloads last week, 309,446,814 in the last month. The 12-month change of +88% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 116 in total
- Latest version
- 1.2.11, 5 Jun 20263 months ago
- First published
- 9 Aug 2015
- Last push to GitHub
- 5 Jun 2026111 days before the snapshot
- Repository archived
- No
- Open issues
- 1
- Open pull requests
- 0
- Commits, last 52 weeks
- 8
- Dependents on npm
- 805
Major versions
- v1 first release 1.0.0, 9 Aug 2015
Recent releases
| Version | Published |
|---|---|
| 1.2.11 | 5 Jun 2026 |
| 1.2.10 | 11 Dec 2024 |
| 1.2.9 | 17 Mar 2024 |
| 1.2.8 | 7 Sept 2023 |
| 1.2.7 | 7 Nov 2022 |
| 1.2.6 | 24 Apr 2022 |
| 1.2.5 | 4 Oct 2021 |
| 1.2.4 | 21 Feb 2021 |
| 1.2.3 | 21 Nov 2020 |
| 1.2.2 | 15 Sept 2020 |
| 1.2.1 | 16 Dec 2019 |
| 1.2.0 | 24 Jul 2019 |
| 1.1.2 | 6 Feb 2016 |
| 1.1.1 | 16 Aug 2015 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >= 0.4
- Runtimes
- -
- Unpacked size (npm)
- 37 kB
- Dependencies (8)
call-bindcall-boundes-abstractes-object-atomssafe-regex-testdefine-propertiesdefine-data-propertyhas-property-descriptors
npm install string.prototype.trim- jsDelivr
https://cdn.jsdelivr.net/npm/string.prototype.trim@1.2.11/ - unpkg
https://unpkg.com/string.prototype.trim@1.2.11/ - esm.sh
https://esm.sh/string.prototype.trim@1.2.11
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| object-keys | 79.8m | - | 7 years ago | CommonJS | - |
| weakmap-polyfill | 1m | - | 5 years ago | CommonJS | - |
| array-buffer-byte-length | 63.3m | - | 1 year ago | CommonJS | - |
Indexability: Indexed.