Gathering detailed insights and metrics for character-entities-legacy
Gathering detailed insights and metrics for character-entities-legacy
Gathering detailed insights and metrics for character-entities-legacy
Gathering detailed insights and metrics for character-entities-legacy
List of legacy HTML named character references that don’t need a trailing semicolon
npm install character-entities-legacy
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
73 Commits
1 Forks
4 Watching
1 Branches
2 Contributors
Updated on 08 Sept 2023
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.6%
1,863,891
Compared to previous day
Last week
4.6%
9,935,858
Compared to previous week
Last month
16.9%
41,212,420
Compared to previous month
Last year
4.3%
414,291,324
Compared to previous year
List of legacy HTML named character references that don’t need a trailing semicolon.
This is a list of certain named character references, that due to legacy
reasons, don’t need a trailing semicolon in HTML.
For example, ©
is perfectly fine for ©
!
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 14.14+, 16.0+), install with npm:
1npm install character-entities-legacy
In Deno with esm.sh
:
1import {characterEntitiesLegacy} from 'https://esm.sh/character-entities-legacy@2'
In browsers with esm.sh
:
1<script type="module"> 2 import {characterEntitiesLegacy} from 'https://esm.sh/character-entities-legacy@2?bundle' 3</script>
1import {characterEntitiesLegacy} from 'character-entities-legacy' 2 3console.log(characterEntitiesLegacy.includes('copy')) // => true 4console.log(characterEntitiesLegacy.includes('frac34')) // => true 5console.log(characterEntitiesLegacy.includes('sup1')) // => true
This package exports the identifier characterEntitiesLegacy
.
There is no default export.
characterEntitiesLegacy
List of (case sensitive) legacy character entity names (Array<string>
).
wooorm/character-entities
holds their decoded values.
See whatwg/html
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 14.14+ and 16.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
— info on character entitieswooorm/character-entities-html4
— info on HTML4 character entitieswooorm/character-reference-invalid
— info on invalid numeric 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
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
no SAST tool detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
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 More