</>PackageGraphPackageGraph

jsesc

npmv3.1.0

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

0
Weekly downloads
1
Dependents
9
Dependencies
2/100
Popularity

Overview

jsesc is an npm package that given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data. 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.

Relationship graph

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

@babel/generatorjsesc
jsesc dependencies dependents

Dependencies

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.

Alternatives to jsesc

fast-json-stringifynpm

Stringify your JSON at max speed

10.1M/wk3 dependentsMITTS
string-lengthnpm

Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes

0/wk2 dependentsMITTS
fast-json-stable-stringifynpm

deterministic `JSON.stringify()` - a faster version of substack's json-stable-strigify without jsonify

0/wk2 dependentsMITTS
set-function-lengthnpm

Set a function's length property

0/wk1 dependentsMITTS
escape-string-regexpnpm

Escape RegExp special characters

0/wk3 dependentsMIT
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

0/wk1 dependentsMIT
parse-jsonnpm

Parse JSON with more helpful errors

0/wk1 dependentsMITTS
prelude-lsnpm

prelude.ls is a functionally oriented utility library. It is powerful and flexible. Almost all of its functions are curried. It is written in, and is the recommended base library for, LiveScript.

0/wk3 dependentsMIT
string-widthnpm

Get the visual width of a string - the number of columns required to display it

0/wk2 dependentsMITTS
is-shared-array-buffernpm

Is this value a JS SharedArrayBuffer?

0/wk1 dependentsMITTS
is-mapnpm

Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

0/wk1 dependentsMITTS
is-setnpm

Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

0/wk1 dependentsMITTS

Frequently installed together

Version history

VersionPublishedLicense
3.1.0latest1 year agoMIT
3.0.25 years agoMIT
3.0.16 years agoMIT
3.0.06 years agoMIT
2.5.27 years agoMIT
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
1.1.010 years agoMIT
1.0.010 years agoMIT
0.5.012 years agoMIT
0.4.312 years agoMIT
0.4.213 years agoMIT

Maintainers

Keywords

Frequently asked questions

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?

jsesc has approximately 0 downloads per week and 1 known dependent packages.