</>PackageGraphPackageGraph

entities

npmv8.0.0TypeScript

Encode & decode XML and HTML entities with ease & speed

Safe to adopt

Yes — entities scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 5 releases in the last 2 years.

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

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 176 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 230 KB installed.

  • BSupply chain: grade B, Good.

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

  • ALicense: grade A, Excellent.

    BSD-2-Clause — 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 entities 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.

230 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 >=20.19.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the entities README.

javascriptFull README ↗
import * as entities from "entities";

// Encoding
entities.escapeUTF8("&#38; ü"); // "&amp;#38; ü"
entities.encodeXML("&#38; ü"); // "&amp;#38; &#xfc;"
entities.encodeHTML("&#38; ü"); // "&amp;&num;38&semi; &uuml;"

// Decoding
entities.decodeXML("asdf &amp; &#xFF; &#xFC; &apos;"); // "asdf & ÿ ü '"
entities.decodeHTML("asdf &amp; &yuml; &uuml; &apos;"); // "asdf & ÿ ü '"

Dependencies

Declared by entities v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (17)

@biomejs/biome ^2.4.7@eslint/compat ^2.0.3@feedic/eslint-config ^0.3.1@types/he ^1.2.3@types/node ^25.5.0eslint ^10.0.3eslint-config-biome ^2.1.3globals ^17.4.0he ^1.2.0html-entities ^2.6.0parse-entities ^4.0.2tinybench ^6.0.0tsx ^4.21.0typedoc ^0.28.17typescript ^5.9.3typescript-eslint ^8.57.1vitest ^4.0.17

Used by

Popular packages that depend on entities.

Relationship graph

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

dom-serializer@vue/compiler-corehappy-domentities
entities dependencies dependents

Frequently installed together

Release history

5 releases in the last two years, typically about 90 days apart.

Recent versions of entities
VersionPublishedSizeLicense
8.0.0latest5 months ago230 KBBSD-2-Clause
7.0.17 months ago383 KBBSD-2-Clause
7.0.01 year ago403 KBBSD-2-Clause
6.0.11 year ago528 KBBSD-2-Clause
6.0.01 year ago528 KBBSD-2-Clause
5.0.02 years ago526 KBBSD-2-Clause
4.5.03 years ago403 KBBSD-2-Clause
4.4.04 years ago345 KBBSD-2-Clause
4.3.14 years ago716 KBBSD-2-Clause
4.3.04 years ago713 KBBSD-2-Clause
4.2.04 years ago709 KBBSD-2-Clause
4.1.14 years ago708 KBBSD-2-Clause
4.1.04 years ago708 KBBSD-2-Clause
4.0.04 years ago602 KBBSD-2-Clause
3.0.15 years ago167 KBBSD-2-Clause

Overview

entities is an npm package that encode & decode XML and HTML entities with ease & speed. It has 3 known dependents in the graph. The latest version is 8.0.0, released under the BSD-2-Clause license.

Who should use it

Teams working in the npm ecosystem who need encode & decode XML and HTML entities with ease & speed and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (BSD-2-Clause).

Cons

  • Large dependency tree (17 direct dependencies) increases install size and audit surface.

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use entities?

Yes — entities scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 5 releases in the last 2 years.

How do I install entities?

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

What license is entities released under?

entities is distributed under the BSD-2-Clause license.

How popular is entities?

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

Is entities still maintained?

The most recent release of entities (v8.0.0) was published 5 months ago.

Does entities run install scripts?

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