Gathering detailed insights and metrics for character-entities
Gathering detailed insights and metrics for character-entities
Gathering detailed insights and metrics for character-entities
Gathering detailed insights and metrics for character-entities
character-entities-legacy
List of legacy HTML named character references that don’t need a trailing semicolon
character-entities-html4
Map of named character references from HTML 4
parse-entities
Parse HTML character references
stringify-entities
Serialize (encode) HTML character references
npm install character-entities
Typescript
Module System
Node Version
NPM Version
99.6
Supply Chain
99.6
Quality
75.6
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
84 Commits
1 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Nov 27, 2024
Latest Version
2.0.2
Package Id
character-entities@2.0.2
Unpacked Size
43.59 kB
Size
14.69 kB
File Count
5
NPM Version
8.9.0
Node Version
18.2.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Map of named character references.
This is a map of named character references in HTML (latest) to the characters they represent.
Maybe when you’re writing an HTML parser or minifier, but otherwise probably
never!
Even then, it might be better to use parse-entities
or
stringify-entities
.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install with npm:
1npm install character-entities
In Deno with esm.sh
:
1import {characterEntities} from 'https://esm.sh/character-entities@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {characterEntities} from 'https://esm.sh/character-entities@2?bundle' 3</script>
1import {characterEntities} from 'character-entities' 2 3console.log(characterEntities.AElig) // => 'Æ' 4console.log(characterEntities.aelig) // => 'æ' 5console.log(characterEntities.amp) // => '&'
This package exports the identifier characterEntities
.
There is no default export.
Mapping between (case-sensitive) character entity names to replacements.
See html.spec.whatwg.org
for more info.
This package is fully typed with TypeScript.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18.0+. It also works in Deno and modern browsers.
This package is safe.
wooorm/parse-entities
— parse (decode) character referenceswooorm/stringify-entities
— serialize (encode) character referenceswooorm/character-entities-html4
— info on named character references in HTML 4character-reference-invalid
— info on invalid numeric character referencescharacter-entities-legacy
— info on legacy named character referencesYes please! See How to Contribute to Open Source.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
Project has not signed or included provenance with any releases.
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More