Package
jsesc
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 140.5m
- +80% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 1 year ago
- v3.1.0
- GitHub stars
- 800
- 54 forks
- Open issues / PRs
- 20 / 6
- Contributors
- 9
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
140,496,274 downloads last week, 659,619,783 in the last month. The 12-month change of +80% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 023 in total
- Latest version
- 3.1.0, 11 Dec 20241 year ago
- First published
- 27 Jul 2013
- Last push to GitHub
- 11 Dec 2024652 days before the snapshot
- Repository archived
- No
- Open issues
- 20
- Open pull requests
- 6
- Commits, last 52 weeks
- 0
- Dependents on npm
- 2,002
Major versions
- v3 first release 3.0.0, 8 Apr 2020
- v2 first release 2.0.0, 30 May 2016
- v1 first release 1.0.0, 19 Feb 2016
- v0 first release 0.3.0, 27 Jul 2013
Recent releases
| Version | Published |
|---|---|
| 3.1.0 | 11 Dec 2024 |
| 3.0.2 | 28 Oct 2020 |
| 3.0.1 | 9 Apr 2020 |
| 3.0.0 | 8 Apr 2020 |
| 2.5.2 | 8 Nov 2018 |
| 2.5.1 | 4 May 2017 |
| 2.5.0 | 11 Apr 2017 |
| 2.4.0 | 27 Dec 2016 |
| 2.3.0 | 10 Dec 2016 |
| 2.2.0 | 7 Jun 2016 |
| 2.1.0 | 31 May 2016 |
| 2.0.0 | 30 May 2016 |
| 1.3.0 | 30 May 2016 |
| 1.2.1 | 30 May 2016 |
- Module format
- CommonJSFrom package.json type, main and exports fields
- TypeScript types
- None
- Node.js engine range
- >=6
- Runtimes
- -
- Unpacked size (npm)
- 32 kB
- Dependencies (0)
- None
npm install jsescCDN
jsDelivr: 129.2k requests in 30 days
- jsDelivr
https://cdn.jsdelivr.net/npm/jsesc@3.1.0/ - unpkg
https://unpkg.com/jsesc@3.1.0/ - esm.sh
https://esm.sh/jsesc@3.1.0
| Package | Weekly downloads | Gzip | Last release | Module | Comparison |
|---|---|---|---|---|---|
| javascript-stringify | 3.1m | - | 5 years ago | CommonJS | - |
| fast-json-stringify | 11.1m | - | 2 months ago | CommonJS | - |
Indexability: Indexed.