
Security News
TypeScript 6.0 Released: The Final JavaScript-Based Version
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.
decode-named-character-reference
Advanced tools
Decode named character references.
A workaround for webpack.
Never use this.
Use parse-entities.
It uses this.
This package is ESM only. In Node.js (version 14.14+, 16.0+), install with npm:
npm install decode-named-character-reference
In Deno with esm.sh:
import {decodeNamedCharacterReference} from 'https://esm.sh/decode-named-character-reference@1'
In browsers with esm.sh:
<script type="module">
import {decodeNamedCharacterReference} from 'https://esm.sh/decode-named-character-reference@1?bundle'
</script>
import {decodeNamedCharacterReference} from 'decode-named-character-reference'
decodeNamedCharacterReference('amp') //=> '&'
This package exports the identifier decodeNamedCharacterReference.
There is no default export.
decodeNamedCharacterReference(value)Again, use parse-entities.
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.
parse-entities
— parse (decode) HTML character referencesYes please! See How to Contribute to Open Source.
The 'he' package (short for HTML entities) is a robust HTML entity encoder/decoder. It supports both named and numeric character references and can handle both encoding and decoding. Compared to decode-named-character-reference, 'he' offers more comprehensive functionality including encoding capabilities.
The 'entities' package provides fast and robust encoding and decoding of XML and HTML entities. It supports both named and numeric character references. Similar to 'he', it offers both encoding and decoding functionalities, making it more versatile than decode-named-character-reference.
The 'html-entities' package is another library for encoding and decoding HTML entities. It supports named, numeric, and hexadecimal character references. This package is similar to 'he' and 'entities' in terms of functionality, providing both encoding and decoding capabilities.
FAQs
Decode named character references
We found that decode-named-character-reference demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TypeScript 6.0 introduces new standard APIs, modern default settings, and deprecations as it prepares projects for the upcoming TypeScript 7.0 release.

Security News
/Research
Newly published Trivy Docker images (0.69.4, 0.69.5, and 0.69.6) were found to contain infostealer IOCs and were pushed to Docker Hub without corresponding GitHub releases.

Research
/Security News
The worm-enabled campaign hit @emilgroup and @teale.io, then used an ICP canister to deliver follow-on payloads.