A list of legacy HTML named character references that do not require a trailing semicolon (e.g., © works for ©). This package provides a single exported array of entity names (without the ampersand or semicolon) that historically are allowed without the semicolon in HTML. Version 3.0.0 is ESM-only, fully typed with TypeScript, and requires Node.js 12.20+, 14.14+, or 16.0+. It is a focused utility for HTML parsers and minifiers; use parse-entities or stringify-entities for broader entity handling.
npm install character-entities-legacyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the legacy entity names array, checking membership and array properties.
Use ESM import or upgrade to Node.js 12+ and use 'import' syntax.
Use lowercase strings without punctuation (e.g., 'copy', not '©' or '©').
Use character-entities for full list, or parse-entities for parsing.
Change to import { characterEntitiesLegacy } from 'character-entities-legacy' and ensure package.json has 'type': 'module'.Run 'npm install character-entities-legacy' and use correct import syntax.
Use 'import { characterEntitiesLegacy } from 'character-entities-legacy'' (named export).No dependency data recorded yet.