</>PackageGraphPackageGraph

html-escaper

npmv3.0.3

fast and safe way to escape and unescape &<>'" chars

Not recommended for new projects

No — html-escaper should not be adopted for new projects. Last published 2029 days ago.

  • AAdoption: grade A, Excellent.

    79.8M downloads per week and 1 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 2029 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 15 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 html-escaper 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.

15 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
No constraint declared
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the html-escaper README.

import {escape, unescape} from 'html-escaper';

escape('string');
unescape('escaped string');

html-escaper vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
html-escaperthis page79.8M1MIT5 years ago
@nodable/entities02MIT1 day ago
query-string22.1M3MIT1 day ago
varint01MIT1 day ago
escape-html07MIT1 day ago
escape-string-regexp316.5M8MIT1 day ago

Dependencies

Declared by html-escaper v3.0.3. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

ascjs ^5.0.1c8 ^7.6.0coveralls ^3.1.0rollup ^2.39.0uglify-es ^3.3.9

Used by

Popular packages that depend on html-escaper.

Relationship graph

Dependencies (left) and dependents (right) of html-escaper.

istanbul-reportshtml-escaper
html-escaper dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 240 days apart.

Recent versions of html-escaper
VersionPublishedSizeLicense
3.0.3latest5 years ago15 KBMIT
3.0.25 years ago15 KBMIT
3.0.15 years ago15 KBMIT
3.0.06 years ago13 KBMIT
2.0.26 years ago13 KBMIT
2.0.16 years ago13 KBMIT
2.0.07 years ago12 KBMIT
1.0.19 years agoMIT
1.0.011 years agoMIT

Overview

html-escaper is an npm package that fast and safe way to escape and unescape &<>'" chars. It is extremely widely used, with about 79.8M downloads per week and 1 known dependents in the graph. The latest version is 3.0.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need fast and safe way to escape and unescape &<>'" chars and value a battle-tested, widely-adopted 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

  • Large, well-established user base (79.8M weekly downloads).
  • 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 html-escaper?

No — html-escaper should not be adopted for new projects. Last published 2029 days ago.

How do I install html-escaper?

Run `npm install html-escaper` to add html-escaper to your npm project.

What license is html-escaper released under?

html-escaper is distributed under the MIT license.

How popular is html-escaper?

html-escaper has approximately 79,754,481 downloads per week and 1 known dependent packages.

Is html-escaper still maintained?

The most recent release of html-escaper (v3.0.3) was published 5 years ago.

Does html-escaper run install scripts?

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