Socket
Socket
Sign inDemoInstall

decode-named-character-reference

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    decode-named-character-reference

Decode named character references


Version published
Weekly downloads
3.9M
increased by2.88%
Maintainers
1
Install size
52.4 kB
Created
Weekly downloads
 

Readme

Source

decode-named-character-reference

Build Status Coverage Status Downloads Size

Decode named character references.

Contents

What is this?

A workaround for webpack.

When should I use this?

Never use this. Use parse-entities. It uses this.

Install

This package is ESM only. In Node.js (version 12.20+, 14.14+, or 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>

Use

import {decodeNamedCharacterReference} from 'decode-named-character-reference'

decodeNamedCharacterReference('amp') //=> '&'

API

This package exports the following identifier: decodeNamedCharacterReference. There is no default export.

decodeNamedCharacterReference(value)

Again, use parse-entities.

Types

This package is fully typed with TypeScript.

Compatibility

This package is at least compatible with all maintained versions of Node.js. As of now, that is Node.js 12.20+, 14.14+, and 16.0+. It also works in Deno and modern browsers.

Security

This package is safe.

Contribute

Yes please! See How to Contribute to Open Source.

License

MIT © Titus Wormer

Keywords

FAQs

Last updated on 02 Jun 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc