{"name":"character-entities","version":"2.0.2","description":"Map of named character references","license":"MIT","keywords":["html","entity","entities","character","reference","name","replacement"],"repository":{"type":"git","url":"git+https://github.com/wooorm/character-entities.git"},"bugs":{"url":"https://github.com/wooorm/character-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/tape":"^4.0.0","bail":"^2.0.0","c8":"^7.0.0","concat-stream":"^2.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.50.0"},"scripts":{"generate":"node build","prepublishOnly":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run generate && npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"9231d7cd8935db394a8c10af7e069cec9a6743d9","homepage":"https://github.com/wooorm/character-entities#readme","_id":"character-entities@2.0.2","_nodeVersion":"18.2.0","_npmVersion":"8.9.0","dist":{"integrity":"sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==","shasum":"2d09c2e72cd9523076ccb21157dff66ad43fcc22","tarball":"http://registry-npm.ywwl.com/character-entities/download/character-entities-2.0.2.tgz","fileCount":5,"unpackedSize":44634,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFdNEGjl1f3JA/p/8PdIvkHn/Z16jY54YOYu5Xm02GCCAiBFPmNnizViqUSmnLgKNqAAEZkQcm9znoa05X1U+I0Lrg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisyCiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWGg//cVLwU1luA5WwC/R2Xrowk4G9R2K33LY5/hdAM51eP2ZMveHf\r\ny6AA++N0AVBL3i3r4cExoIBIKEVrHvYY+SJKhxi0YHu7dfCSuJOOIxoWnDxu\r\nlRqPEPZ6mX0zWwChF4jaosnuorid7soi0SZxry08BRtmZuftoySz24GXB7VG\r\nZHE/gA0KajfWiy2nhniT50GLvASKlYe6iQElxhnFXOWxa2Q3DMrId9133uuv\r\nUTmAPaBvVMKK9a59bPaotpoIU0ftNmRCI8x0O/Q4Obf+wafraivxrMLs8zkj\r\nzR93yxlp9uvp+ylZoKEEXRWb5HlSh+gSjYnooF2zXKdRDPJ4JPcfAhUjFNB6\r\nCOj8Buz1+5WwF1SIviyOYdyiN3fei9k8CcmZUwapFTQXySiiWH5vcLRGzHZ1\r\nVBnHSWavRW/3RjAlYdjySUm+sXnFfK/hruFxVrPTwGsEcAPHkRMgw6iKMbht\r\nFAiQVpyUslUGIMuOxdp2poeXKIDTKXq5MNS1u2AYF9brRw14Hy25v9wZBOd3\r\nv5KJgdACuRbSr0FDz/q1zvQFlTilRCqRu/suyOs26Y6YR+XY6uNbd36cjiU3\r\nNmZT+UdCGvyUhtePH7pwu26Xc3wLRuovREjKSVahlPQ22Nyuxf9Iz8awFjz3\r\n0q14OubtyHarGlJSR+63kw5/I6NZBvZ2Ifg=\r\n=D3Hg\r\n-----END PGP SIGNATURE-----\r\n","size":15047,"noattachment":false,"key":"/character-entities/-/character-entities-2.0.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/character-entities_2.0.2_1655906466682_0.8686400681777817"},"_hasShrinkwrap":false,"readme":"# character-entities\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nMap of 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    *   [characterEntities](#characterentities)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a map of named character references in HTML (latest) to the characters\nthey represent.\n\n## When should I use this?\n\nMaybe when you’re writing an HTML parser or minifier, but otherwise probably\nnever!\nEven then, it might be better to use [`parse-entities`][parse-entities] or\n[`stringify-entities`][stringify-entities].\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install with [npm][]:\n\n```sh\nnpm install character-entities\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {characterEntities} from 'https://esm.sh/character-entities@2'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {characterEntities} from 'https://esm.sh/character-entities@2?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {characterEntities} from 'character-entities'\n\nconsole.log(characterEntities.AElig) // => 'Æ'\nconsole.log(characterEntities.aelig) // => 'æ'\nconsole.log(characterEntities.amp) // => '&'\n```\n\n## API\n\nThis package exports the identifier `characterEntities`.\nThere is no default export.\n\n### characterEntities\n\nMapping between (case-sensitive) character entity names to replacements.\nSee [`html.spec.whatwg.org`][html] for more info.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 12.20+, 14.14+, 16.0+, and 18.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/parse-entities`](https://github.com/wooorm/parse-entities)\n    — parse (decode) character references\n*   [`wooorm/stringify-entities`](https://github.com/wooorm/stringify-entities)\n    — serialize (encode) character references\n*   [`wooorm/character-entities-html4`](https://github.com/wooorm/character-entities-html4)\n    — info on named character references in HTML 4\n*   [`character-reference-invalid`](https://github.com/wooorm/character-reference-invalid)\n    — info on invalid numeric character references\n*   [`character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)\n    — info on legacy named 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[build-badge]: https://github.com/wooorm/character-entities/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/character-entities/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/character-entities.svg\n\n[coverage]: https://codecov.io/github/wooorm/character-entities\n\n[downloads-badge]: https://img.shields.io/npm/dm/character-entities.svg\n\n[downloads]: https://www.npmjs.com/package/character-entities\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities.svg\n\n[size]: https://bundlephobia.com/result?p=character-entities\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[parse-entities]: https://github.com/wooorm/parse-entities\n\n[stringify-entities]: https://github.com/wooorm/stringify-entities\n\n[html]: https://html.spec.whatwg.org/multipage/syntax.html#named-character-references\n","publish_time":1655906466906,"_cnpm_publish_time":1655906466906,"dist-tags":{"latest":"2.0.2"}}