Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Mar 28, 2024 via pnpm

entities 0.5.0

Encode & decode XML/HTML entities with ease
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
1
license
1
BSD-like
Package created
14 Jan 2012
Version published
16 Feb 2014
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-like

Issues

2

1 high severity issue

high
Recommendation: Validate that the package complies with your license policy
via: entities@0.5.0
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: entities@0.5.0
Collapse
Expand

Licenses

BSD-like

Invalid
Not OSI Approved
1 Packages, Including:
entities@0.5.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
ⓘ This is a list of entities 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does entities do?

The JavaScript npm package "entities" is a high-speed utility used for encoding and decoding XML and HTML entities with flexibility and accuracy. It's proven reliable over time, with widespread usage by prominent libraries such as htmlparser2, the official AWS SDK, and commonmark. It stands out with its speed, regularly outperforming rival libraries in performance benchmarks. It offers configuration options for output customization, making it adaptable to specific developer needs, be it UTF8 or ASCII character coding.

How do you use entities?

Using "entities" is fairly straightforward. After installing the package with npm install entities, you can include it in your JavaScript project with const entities = require("entities"). Encoding and decoding operations can be performed by calling corresponding methods on the entities object. Here's a brief example:

// Encoding
console.log(entities.escapeUTF8("& ü")); // "& ü"
console.log(entities.encodeXML("& ü")); // "& ü"
console.log(entities.encodeHTML("& ü")); // "& ü"

// Decoding
console.log(entities.decodeXML("asdf & ÿ ü '")); // "asdf & ÿ ü '"
console.log(entities.decodeHTML("asdf & ÿ ü '")); // "asdf & ÿ ü '"

Where are the entities docs?

As of now, the provided README content serves as the primary documentation for the "entities" package. This document explains the purpose of the package, its features and perks, how to install and use the package, and includes insights on performance benchmarks and Frequently Asked Questions. For the latest, most thorough information on using "entities", refer to the README on the official GitHub repository at git://github.com/fb55/entities.git.