entities
npmv8.0.0TypeScriptEncode & 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.
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
- node >=20.19.0
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the entities README.
import * as entities from "entities";
// Encoding
entities.escapeUTF8("& ü"); // "& ü"
entities.encodeXML("& ü"); // "& ü"
entities.encodeHTML("& ü"); // "& ü"
// Decoding
entities.decodeXML("asdf & ÿ ü '"); // "asdf & ÿ ü '"
entities.decodeHTML("asdf & ÿ ü '"); // "asdf & ÿ ü '"Dependencies
Declared by entities v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (17)
Used by
Popular packages that depend on entities.
render domhandler DOM nodes to a string
@vue/compiler-core
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.
Relationship graph
Dependencies (left) and dependents (right) of entities.
Frequently installed together
Next generation testing framework powered by Vite
TypeScript definitions for node
UI for Vitest
TypeScript definitions for ws
get dimensions of any image buffer
Parses, serializes, and manipulates MIME types, according to the WHATWG MIME Sniffing Standard
TypeScript definitions for whatwg-mimetype
Generates and consumes source maps
internal utils shared across @vue packages
Traverse an ESTree-compliant AST
A JavaScript parser
Babel Types is a Lodash-esque utility library for AST nodes
Release history
5 releases in the last two years, typically about 90 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.0.0latest | 5 months ago | 230 KB | BSD-2-Clause |
| 7.0.1 | 7 months ago | 383 KB | BSD-2-Clause |
| 7.0.0 | 1 year ago | 403 KB | BSD-2-Clause |
| 6.0.1 | 1 year ago | 528 KB | BSD-2-Clause |
| 6.0.0 | 1 year ago | 528 KB | BSD-2-Clause |
| 5.0.0 | 2 years ago | 526 KB | BSD-2-Clause |
| 4.5.0 | 3 years ago | 403 KB | BSD-2-Clause |
| 4.4.0 | 4 years ago | 345 KB | BSD-2-Clause |
| 4.3.1 | 4 years ago | 716 KB | BSD-2-Clause |
| 4.3.0 | 4 years ago | 713 KB | BSD-2-Clause |
| 4.2.0 | 4 years ago | 709 KB | BSD-2-Clause |
| 4.1.1 | 4 years ago | 708 KB | BSD-2-Clause |
| 4.1.0 | 4 years ago | 708 KB | BSD-2-Clause |
| 4.0.0 | 4 years ago | 602 KB | BSD-2-Clause |
| 3.0.1 | 5 years ago | 167 KB | BSD-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
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.