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
npm install character-entities
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
10 Stars
84 Commits
1 Forks
3 Watching
1 Branches
2 Contributors
Updated on 27 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-0.6%
2,162,649
Compared to previous day
Last week
4.7%
11,438,511
Compared to previous week
Last month
15.8%
47,469,349
Compared to previous month
Last year
9.4%
494,292,570
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 16.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.
characterEntities
Map between (case-sensitive) character entity names to replacements
(Record<string, string>
).
See html.spec.whatwg.org
for more info.
This package is fully typed with TypeScript. It exports no additional types.
This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 16.0+. It also works in Deno and modern browsers.
This package is safe.
parse-entities
— decode character referencesstringify-entities
— encode character referencescharacter-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.
MIT © Titus Wormer
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
Project has not signed or included provenance with any releases.
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
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 Morecharacter-entities-legacy
List of legacy HTML named character references that don’t need a trailing semicolon
xmlentities
XML and HTML character entities encoder/decoder
character-entities-html4
Map of named character references from HTML 4
parse-entities
Parse HTML character references