</>PackageGraphPackageGraph

jsesc

npmv3.1.0

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.

Adopt with care

jsesc is usable, with caveats. Last published 637 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • CMaintenance: grade C, Fair — worth a look.

    Last published 637 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 32 KB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding jsesc to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

32 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=6
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the jsesc README.

const jsesc = require('jsesc');

jsesc vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
jsescthis page01MIT1 year ago
escape-string-regexp316.5M8MIT1 day ago
fast-json-stable-stringify137.5M2MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago
json-stable-stringify-without-jsonify72.1M1MIT1 day ago
json-stringify-safe36.4M1ISC1 day ago

Dependencies

Declared by jsesc v3.1.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (9)

coveralls ^2.11.6grunt ^0.4.5grunt-cli ^1.3.2grunt-template ^0.2.3istanbul ^0.4.2mocha ^5.2.0regenerate ^1.3.0requirejs ^2.1.22unicode-13.0.0 0.8.0

Used by

Popular packages that depend on jsesc.

Relationship graph

Dependencies (left) and dependents (right) of jsesc.

@babel/generatorjsesc
jsesc dependencies dependents

Frequently installed together

Release history

1 release in the last two years, typically about 70 days apart.

Recent versions of jsesc
VersionPublishedSizeLicense
3.1.0latest1 year ago32 KBMIT
3.0.25 years ago31 KBMIT
3.0.16 years ago31 KBMIT
3.0.06 years ago31 KBMIT
2.5.27 years ago31 KBMIT
2.5.19 years agoMIT
2.5.09 years agoMIT
2.4.09 years agoMIT
2.3.09 years agoMIT
2.2.010 years agoMIT
2.1.010 years agoMIT
2.0.010 years agoMIT
1.3.010 years agoMIT
1.2.110 years agoMIT
1.2.010 years agoMIT

Overview

jsesc is an npm package that given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data. It has 1 known dependents in the graph. The latest version is 3.1.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use jsesc?

jsesc is usable, with caveats. Last published 637 days ago.

How do I install jsesc?

Run `npm install jsesc` to add jsesc to your npm project.

What license is jsesc released under?

jsesc is distributed under the MIT license.

How popular is jsesc?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on jsesc.

Is jsesc still maintained?

The most recent release of jsesc (v3.1.0) was published 1 year ago.

Does jsesc run install scripts?

No. jsesc does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.