Skip to content
JS
Package

string.prototype.trim

ES5 spec-compliant shim for String.prototype.trim

v1.2.11, 5 Jun 2026MITCommonJSTypes: NonePolyfills and shimsStrings and text
$ npm install 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
025m50m75m100mSept 2025Mar 2026Sept 2026High 85.5m (25 Aug 2026)Low 23.4m (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.

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

  1. v1 first release 1.0.0, 9 Aug 2015

Recent releases

VersionPublished
1.2.115 Jun 2026
1.2.1011 Dec 2024
1.2.917 Mar 2024
1.2.87 Sept 2023
1.2.77 Nov 2022
1.2.624 Apr 2022
1.2.54 Oct 2021
1.2.421 Feb 2021
1.2.321 Nov 2020
1.2.215 Sept 2020
1.2.116 Dec 2019
1.2.024 Jul 2019
1.1.26 Feb 2016
1.1.116 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/string.prototype.trim@1.2.11/
  • unpkghttps://unpkg.com/string.prototype.trim@1.2.11/
  • esm.shhttps://esm.sh/string.prototype.trim@1.2.11
PackageWeekly downloadsGzipLast releaseModuleComparison
object-keys79.8m-7 years agoCommonJS-
weakmap-polyfill1m-5 years agoCommonJS-
array-buffer-byte-length63.3m-1 year agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.