{"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"bugs":{"url":"https://github.com/wooorm/decode-named-character-reference/issues"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"character-entities":"^2.0.0"},"description":"Decode named character references","devDependencies":{"@types/node":"^25.0.0","c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-wooorm":"^11.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^1.0.0"},"exports":{"convex":"./index.js","deno":"./index.js","edge-light":"./index.js","react-native":"./index.js","worker":"./index.js","workerd":"./index.js","browser":"./index.dom.js","default":"./index.js"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"keywords":["character","decode","named","references"],"license":"MIT","main#":"to do: next major: remove field","main":"index.js","name":"decode-named-character-reference","prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"repository":{"type":"git","url":"git+https://github.com/wooorm/decode-named-character-reference.git"},"scripts":{"build":"tsc --build --clean && tsc --build && type-coverage","format":"remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --reporter lcov -- npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"sideEffects":false,"typeCoverage":{"atLeast":100,"ignoreCatch":true},"types#":"to do: next major: remove field","types":"index.d.ts","type":"module","version":"1.3.0","xo":{"prettier":true,"rules":{"unicorn/prefer-code-point":"off"},"space":true},"gitHead":"15a3b3ffb0c0ead9e999e215780f70c37a2d502f","_id":"decode-named-character-reference@1.3.0","homepage":"https://github.com/wooorm/decode-named-character-reference#readme","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==","shasum":"3e40603760874c2e5867691b599d73a7da25b53f","tarball":"http://registry-npm.ywwl.com/decode-named-character-reference/download/decode-named-character-reference-1.3.0.tgz","fileCount":9,"unpackedSize":9277,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIErwzIg7BbbxQJVH4/TeOwUGd12aGvg8wk+lQWbipjjXAiEA4oGcsEBqVQHyYiArHYMEY1vtWFUhTx43E38G6PkRnrM="}],"size":3813,"noattachment":false,"key":"/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decode-named-character-reference_1.3.0_1768852381484_0.8106126398853597"},"_hasShrinkwrap":false,"readme":"# decode-named-character-reference\n\n[![Build Status][build-badge]][build]\n[![Coverage Status][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nDecode named character references.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`decodeNamedCharacterReference(value)`](#decodenamedcharacterreferencevalue)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Related](#related)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nA workaround for webpack.\n\n## When should I use this?\n\nNever use this.\nUse [`parse-entities`][parse-entities].\nIt uses this.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install decode-named-character-reference\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {decodeNamedCharacterReference} from 'https://esm.sh/decode-named-character-reference@1'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {decodeNamedCharacterReference} from 'https://esm.sh/decode-named-character-reference@1?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\n\ndecodeNamedCharacterReference('amp') //=> '&'\n```\n\n## API\n\nThis package exports the identifier `decodeNamedCharacterReference`.\nThere is no default export.\n\n### `decodeNamedCharacterReference(value)`\n\nAgain, use [`parse-entities`][parse-entities].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n* [`parse-entities`][parse-entities]\n  — parse (decode) HTML character references\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[author]: https://wooorm.com\n\n[build]: https://github.com/wooorm/decode-named-character-reference/actions\n\n[build-badge]: https://github.com/wooorm/decode-named-character-reference/workflows/main/badge.svg\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[coverage]: https://codecov.io/github/wooorm/decode-named-character-reference\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/decode-named-character-reference.svg\n\n[downloads]: https://www.npmjs.com/package/decode-named-character-reference\n\n[downloads-badge]: https://img.shields.io/npm/dm/decode-named-character-reference.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[parse-entities]: https://github.com/wooorm/parse-entities\n\n[size]: https://bundlephobia.com/result?p=decode-named-character-reference\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/decode-named-character-reference.svg\n\n[typescript]: https://www.typescriptlang.org\n","publish_time":1768852381619,"_cnpm_publish_time":1768852381619,"dist-tags":{"latest":"1.3.0"}}