Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 17, 2024 via pnpm

entities 4.5.0

Encode & decode XML and HTML entities with ease & speed
Package summary
Share
0
issues
1
license
1
BSD-2-Clause
Package created
14 Jan 2012
Version published
13 Apr 2023
Maintainers
1
Total deps
1
Direct deps
0
License
BSD-2-Clause

Issues

0
This package has no issues

Licenses

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
entities@4.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.