Package
@stdlib/string-trim
Trim whitespace characters from the beginning and end of a string.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 2.2k
- - over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 4
- Direct, from package.json
- Last release
- 7 months ago
- v0.2.3
- GitHub stars
- 3
- 0 forks
- Open issues / PRs
- 0 / 0
- Contributors
- -
- Commits, last 52 weeks
- 11
No weekly download data in the snapshot.
2,238 downloads last week, 53,147 in the last month. No 52-week series has been fetched yet.
- Releases, last 12 months
- -
- Latest version
- 0.2.3, 7 Feb 20267 months ago
- First published
- -
- Last push to GitHub
- 10 Sept 202615 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 0
- Commits, last 52 weeks
- 11
- Dependents on npm
- 4
Major versions
-
Recent releases
-
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >=0.10.0
- Runtimes
- -
- Unpacked size (npm)
- 26 kB
- Dependencies (4)
@stdlib/string-format@stdlib/assert-is-string@stdlib/string-base-trim@stdlib/error-tools-fmtprodmsg
npm install @stdlib/string-trim- jsDelivr
https://cdn.jsdelivr.net/npm/@stdlib/string-trim@0.2.3/ - unpkg
https://unpkg.com/@stdlib/string-trim@0.2.3/ - esm.sh
https://esm.sh/@stdlib/string-trim@0.2.3
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| qsu | 14.1k | - | 4 days ago | ESM only | - |
| to-hex | 13.6k | - | 4 years ago | CommonJS | - |
| kebabcase-keys | 5.8k | - | 7 years ago | - | - |
| arr-diff | 16.4m | - | 9 years ago | CommonJS | - |
| mixin-deep | 10.4m | - | 7 years ago | CommonJS | - |
| arr-flatten | 9.6m | - | 9 years ago | CommonJS | - |
| humps | 993.5k | - | 9 years ago | CommonJS | - |
| array-last | 949.2k | - | 8 years ago | CommonJS | - |
Indexability: Not indexed (discovery only): downloads_week 2238 < 10000.