{"name":"character-reference-invalid","version":"2.0.1","description":"Map of invalid numeric character references to their replacements, according to HTML","license":"MIT","keywords":["html","entity","numeric","character","reference","replacement","invalid","name"],"repository":{"type":"git","url":"git+https://github.com/wooorm/character-reference-invalid.git"},"bugs":{"url":"https://github.com/wooorm/character-reference-invalid/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","hast-util-select":"^5.0.0","hast-util-to-string":"^2.0.0","prettier":"^2.0.0","rehype-parse":"^8.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","unified":"^10.0.0","xo":"^0.45.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","generate":"node build","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":"5a7f96aefe96cab92f307d30e339e88822540d99","homepage":"https://github.com/wooorm/character-reference-invalid#readme","_id":"character-reference-invalid@2.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==","shasum":"85c66b041e43b47210faf401278abf808ac45cb9","tarball":"http://registry-npm.ywwl.com/character-reference-invalid/download/character-reference-invalid-2.0.1.tgz","fileCount":5,"unpackedSize":8428,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2lx4CRA9TVsSAnZWagAAD2EP+QB1NKAyuRqArMppYBQz\ncsMsGeac/QQOk23R28eU7sJgSdhyHdGwXmOIaVoJu4yPLOdrQn5GqBdtY4ia\nBsBEAiAxu3B/jO7iKEpT4bE/WdaNdgRspsA8IHFT2npSI1nJR7wwNupsMCZ3\nsH1NnttYzqVeDTBiqenxuOWfMYnVZnvhvueL5HTSzo2ubLGvBciFp4t15Rdx\nkbjHloHh1kogJp7zEQ5ljlasYJZsAcWgopTOwemqwrQIA/D8jjwQpekHCsb/\n1HE+oXz5aykN/lh5lyw5UmGAq4wS0tqX6W8H9KGJsnoJjSPALAGAInd1C2tv\nXzEdnF9q/RTZ3wjh4HMfcLcWKxRbyLy4wbt3T7Vsr5g525quzLiVQU60oWch\nyN/AS0r+VRKztraef/OS5156S7pzi0O82N38h237Wwc81i2Pw+AgGxlSAxzO\nyion2HBTvYYj0AREraoPOjmnLPbPS5BUhSpNWVxOOoEbxCgF1QXL0Y67b2xb\nEsgtzzgiqjwwtu9XJbJlHoz691UjVfOKAKhsMZ3zbNfMpzvX3BvyG39kTzaB\nF/mgyobmqxwrw3EDWjYf+8lekHLVN6ymrYv941h7LIV5Zg3wERm4rTUgEIYt\ndccaX58scU/AVJiZ7qK0xIomi8g6b2psPc1sLoTRVs/j+3kJrgV6iEArFFSy\nvprs\r\n=0Iit\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFgTdIdbvLv16BhUnNCPlLUaX1RdAMp1D6KnamcEzzJAAiEAu9FKQmm5YZvo3OKzgt2gDzhz+aSC3UNAcTbSTvkNBQA="}],"size":3457,"noattachment":false,"key":"/character-reference-invalid/-/character-reference-invalid-2.0.1.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-reference-invalid_2.0.1_1635352551713_0.8399616818240254"},"_hasShrinkwrap":false,"readme":"# character-reference-invalid\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nMap of invalid numeric character references to their replacements, according to\nHTML.\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    *   [`characterReferenceInvalid`](#characterreferenceinvalid)\n*   [Source](#source)\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 from the [HTML spec][source] of C1 ASCII/Unicode control\ncharacters (which are disallowed by HTML) to the characters those code points\nwould have in Windows 1252.\nFor example, U+0080 (Padding Character) maps to `€`, because that’s used for\n0x80 in Windows 1252.\n\n## When should I use this?\n\nProbably never, unless you’re dealing with parsing HTML or similar XML-like\nthings, or in a place where Unicode is not the primary encoding (it is in most\nplaces).\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:\n\n```sh\nnpm install character-reference-invalid\n```\n\nIn Deno with [Skypack][]:\n\n```js\nimport {characterReferenceInvalid} from 'https://cdn.skypack.dev/character-reference-invalid@2?dts'\n```\n\nIn browsers with [Skypack][]:\n\n```html\n<script type=\"module\">\n  import {characterReferenceInvalid} from 'https://cdn.skypack.dev/character-reference-invalid@2?min'\n</script>\n```\n\n## Use\n\n```js\nimport {characterReferenceInvalid} from 'character-reference-invalid'\n\nconsole.log(characterReferenceInvalid[0x80]) // => '€'\nconsole.log(characterReferenceInvalid[0x89]) // => '‰'\nconsole.log(characterReferenceInvalid[0x99]) // => '™'\n```\n\n## API\n\nThis package exports the following identifiers: `characterReferenceInvalid`.\nThere is no default export.\n\n### `characterReferenceInvalid`\n\n`Record<number, string>` — mapping between invalid numeric character reference\ncodes to replacements characters.\n\n## Source\n\nSee [`html.spec.whatwg.org`][source].\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+, and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`wooorm/character-entities`](https://github.com/wooorm/character-entities)\n    — HTML character entity info\n*   [`wooorm/character-entities-html4`](https://github.com/wooorm/character-entities-html4)\n    — HTML 4 character entity info\n*   [`wooorm/character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)\n    — legacy character entity info\n*   [`wooorm/parse-entities`](https://github.com/wooorm/parse-entities)\n    — parse HTML character references\n*   [`wooorm/stringify-entities`](https://github.com/wooorm/stringify-entities)\n    — serialize 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[build-badge]: https://github.com/wooorm/character-reference-invalid/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/character-reference-invalid/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/character-reference-invalid.svg\n\n[coverage]: https://codecov.io/github/wooorm/character-reference-invalid\n\n[downloads-badge]: https://img.shields.io/npm/dm/character-reference-invalid.svg\n\n[downloads]: https://www.npmjs.com/package/character-reference-invalid\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/character-reference-invalid.svg\n\n[size]: https://bundlephobia.com/result?p=character-reference-invalid\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[skypack]: https://www.skypack.dev\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[source]: https://html.spec.whatwg.org/multipage/parsing.html#table-charref-overrides\n","publish_time":1635352551866,"_cnpm_publish_time":1635352551866,"dist-tags":{"latest":"2.0.1"}}