</>PackageGraphPackageGraph

escape-html

npmv1.0.3

Escape string for use in HTML

93.4M
Weekly downloads
3
Dependents
2
Dependencies
100/100
Popularity

Overview

escape-html is an npm package that escape string for use in HTML. It is extremely widely used, with about 93.4M downloads per week and 3 known dependents in the graph. The latest version is 1.0.3, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need escape string for use in HTML 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 (93.4M weekly downloads).
  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

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 escape-html.

vitefinalhandlersendserve-staticexpresskoaescape-html
escape-html dependencies dependents

Dependencies

Dev (2)

beautify-benchmark 0.2.4benchmark 1.0.0

Used by

Popular packages that depend on escape-html.

Alternatives to escape-html

sql-escapernpm

🛡️ Faster SQL escape and format for JavaScript (Node.js, Bun, and Deno).

3.9M/wk1 dependentsMITTS
process-warningnpm

A small utility for creating warnings and emitting them.

0/wk1 dependentsMITTS
@fastify/errornpm

A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.

0/wk2 dependentsMITTS
follow-redirectsnpm

HTTP and HTTPS modules that follow redirects.

0/wk1 dependentsMIT
minimizer-webpack-pluginnpm

Minimizer plugin for webpack

0/wk1 dependentsMITTS
escape-string-regexpnpm

Escape RegExp special characters

0/wk2 dependentsMIT
jsdomnpm

A JavaScript implementation of many web standards

0/wk3 dependentsMIT
happy-domnpm

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

0/wk1 dependentsMITTS
@vitest/uinpm

UI for Vitest

0/wk4 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/wk1 dependentsMIT
is-potential-custom-element-namenpm

Check whether a given string matches the `PotentialCustomElementName` production as defined in the HTML Standard.

0/wk1 dependentsMIT
bytesnpm

Utility to parse a string bytes to bytes and vice-versa

0/wk1 dependentsMIT

Frequently installed together

Version history

VersionPublishedLicense
1.0.3latest11 years agoMIT
1.0.211 years agoMIT
1.0.112 years agoMIT
1.0.013 years agoMIT
0.0.114 years agoMIT

Maintainers

Keywords

Frequently asked questions

How do I install escape-html?

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

What license is escape-html released under?

escape-html is distributed under the MIT license.

How popular is escape-html?

escape-html has approximately 93,381,741 downloads per week and 3 known dependent packages.