Package
trim-x
This method removes whitespace from the left and right end of a string.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 9.6k
- +8% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- 7 years ago
- v4.1.2
- GitHub stars
- 0
- 0 forks
- Open issues / PRs
- 0 / 20
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
9,600 downloads last week, 42,233 in the last month. The 12-month change of +8% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 4.1.2, 28 Aug 20197 years ago
- First published
- -
- Last push to GitHub
- 4 Jan 20231,359 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 20
- Commits, last 52 weeks
- 0
- Dependents on npm
- 5
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=8.11.4
- Runtimes
- -
- Unpacked size (npm)
- 145 kB
- Dependencies (2)
trim-left-xtrim-right-x
npm install trim-x- jsDelivr
https://cdn.jsdelivr.net/npm/trim-x@4.1.2/ - unpkg
https://unpkg.com/trim-x@4.1.2/ - esm.sh
https://esm.sh/trim-x@4.1.2
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| eventemitter3 | 117.2m | - | 8 months ago | ESM + CommonJS | - |
| ieee754 | 84.5m | - | 5 years ago | CommonJS | - |
| deep-extend | 33.8m | - | 8 years ago | CommonJS | - |
| re2js | 5.1m | - | 2 months ago | ESM + CommonJS | - |
| unload | 2.2m | - | 3 years ago | ESM + CommonJS | - |
| easy-stack | 1m | - | 1 month ago | ESM + CommonJS | - |
| level-iterator-stream | 564.4k | - | 5 years ago | - | - |
| mermaid-isomorphic | 475.6k | - | 7 months ago | ESM only | - |
Indexability: Not indexed (discovery only): downloads_week 9600 < 10000.