# Install jsesc with npm

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data. Version 3.1.0 via npm; verified 2024-12-11.

## Install

```sh
sudo av install npm:jsesc
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g jsesc
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:jsesc
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/jsesc>
- **Version:** 3.1.0
- **Source summary:** Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
- **Homepage:** <https://mths.be/jsesc>
- **Repository:** <https://github.com/mathiasbynens/jsesc>
- **Upstream docs:** <https://mths.be/jsesc>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz>
- **Issue tracker:** <https://github.com/mathiasbynens/jsesc/issues>
- **Published:** 2024-12-11T08:24:34.551Z
- **Last updated:** 2024-12-11T08:24:34.551Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- jsesc (cli)
- jsesc (alias)

## Build dependencies

- coveralls
- grunt
- grunt-cli
- grunt-template
- istanbul
- mocha
- regenerate
- requirejs
- unicode-13.0.0

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.1.0
- Package-manager updated: 2024-12-11
- Local data: ok
- Upstream repository: https://github.com/mathiasbynens/jsesc
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for jsesc. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 3.1.0
- **Version Count:** 23
- **Maintainers:** mathias
- **Author:** Mathias Bynens
- **Publisher:** mathias
- **Engines:** Node: >=6
- **Integrity:** sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==
- **Shasum:** 74d335a234f67ed19907fdadfac7ccf9d409825d
- **Unpacked Size:** 32,280
- **File Count:** 0
- **Created At:** 2013-07-27T09:03:48.064Z
- **Latest Published At:** 2024-12-11T08:24:34.551Z
- **Modified At:** 2024-12-11T08:24:34.718Z


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [cssesc](https://www.automicvault.com/pkg/npm/cssesc/) - Both packages touch the same language runtime or ecosystem. Shared terms: ascii, escape, javascript, possible, shortest.
- [regexpu](https://www.automicvault.com/pkg/npm/regexpu/) - Both packages touch the same language runtime or ecosystem. Shared terms: javascript, jsesc, that.
- [esrever](https://www.automicvault.com/pkg/npm/esrever/) - Both packages touch the same language runtime or ecosystem. Shared terms: javascript, string.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
