html-escaper
npmv3.0.3fast 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| html-escaperthis page | 79.8M | 1 | MIT | 5 years ago |
| @nodable/entities | 0 | 2 | MIT | 1 day ago |
| query-string | 22.1M | 3 | MIT | 1 day ago |
| varint | 0 | 1 | MIT | 1 day ago |
| escape-html | 0 | 7 | MIT | 1 day ago |
| escape-string-regexp | 316.5M | 8 | MIT | 1 day ago |
Dependencies
Declared by html-escaper v3.0.3. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (5)
Used by
Popular packages that depend on html-escaper.
Relationship graph
Dependencies (left) and dependents (right) of html-escaper.
Frequently installed together
React is a JavaScript library for building user interfaces.
React package for working with the DOM.
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Data library for istanbul coverage objects
Base reporting library for istanbul
Release history
No releases in the last two years, typically about 240 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 3.0.3latest | 5 years ago | 15 KB | MIT |
| 3.0.2 | 5 years ago | 15 KB | MIT |
| 3.0.1 | 5 years ago | 15 KB | MIT |
| 3.0.0 | 6 years ago | 13 KB | MIT |
| 2.0.2 | 6 years ago | 13 KB | MIT |
| 2.0.1 | 6 years ago | 13 KB | MIT |
| 2.0.0 | 7 years ago | 12 KB | MIT |
| 1.0.1 | 9 years ago | — | MIT |
| 1.0.0 | 11 years ago | — | MIT |
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
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.