{"name":"character-reference-invalid","version":"1.1.2","description":"HTML invalid numeric character reference information","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"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"main":"index.json","files":["index.json"],"dependencies":{},"devDependencies":{"bail":"^1.0.1","browserify":"^16.0.0","concat-stream":"^1.6.0","esmangle":"^1.0.1","hast-util-select":"^1.0.1","hast-util-to-string":"^1.0.0","rehype-parse":"^4.0.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","unified":"^6.1.5","xo":"^0.20.0"},"scripts":{"generate":"node build","format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.json --bare -s characterReferenceInvalid > character-reference-invalid.js","build-mangle":"esmangle character-reference-invalid.js > character-reference-invalid.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test":"npm run generate && npm run format && npm run build && npm run test-api"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off","no-var":"off","prefer-arrow-callback":"off"},"ignores":["character-reference-invalid.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"477e77f3f2f1b4128513f1affa65edcd5d48e3cf","homepage":"https://github.com/wooorm/character-reference-invalid#readme","_id":"character-reference-invalid@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-7I/xceXfKyUJmSAn/jw8ve/9DyOP7XxufNYLI9Px7CmsKgEUaZLUTax6nZxGQtaoiZCjpu6cHPj20xC/vqRReQ==","shasum":"21e421ad3d84055952dab4a43a04e73cd425d3ed","tarball":"http://registry-npm.ywwl.com/character-reference-invalid/download/character-reference-invalid-1.1.2.tgz","fileCount":4,"unpackedSize":5176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa11zvCRA9TVsSAnZWagAALjUP/3TLy5oQ/Gu8T6NOUGq/\nss7CQX94E29OjQptxsQQQtifV3EWakSZUEq9fJSiq/p5FZX7RGtdg2mZVB4h\njJ/PngTkM8eogs6wztIK7D43zySW9JUlaGwiDovT+OBmBLnAG8mSf3odcwPY\n5Z2h5J7vgaX58qyzF64FkeG7CHED5N89l488aiyNDue0eFSqC6HBqW4ohONL\ndLyoBRMF0OwKwCyNjUdBcJjD4XmJBR0Y2s9Nh/kl2v5nMKu02CIn/Swtu0m0\n4V7y3nIO6d5OYHOu65Oq8hvo85aABRXTvmXD2/wT2UMP2hlPDjRl0V/zoQXO\nLBv6mqSa7q0sP9DiL4/4k+K7xRz52jzmg3qDtFqWjmI1rrUHYdbxHb2apMG6\nanrdQQciVNm4CxXf51w67RSsW2tNAvy1Mh3/3dXmndvmbRRL7GdYR1wMjtn7\nUgVWcHfV5HiANntlc7xRAsndDBVJIa65p42RsIhCHMmdbUxi7l3B6txZTD+r\nzwuiU4EVFSW0zUzj2W7R10JEL/biEpxYkugzdmv9/s0fqK2nqbSpQixkWa52\nfRlYX8OWCuKIz86fPA78Wn+nOT2VHfhWxg8JZTgveywgv40gK4i5/jxHNoA7\nhoDAXDnDcsZXuAjqDk1pmtZRyuxYD2k21rHbrIwx7PSA+zmTFGjqSe+kZWN6\nnFIs\r\n=ykCz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG2s7AZ8cJHv0fHaxfXNl9pUyk3QKMqmkiUkE6rJoQ5uAiEA/mmdlQZWP5HWopzDzZerWyYgtIgWB6JfpGpsAoP9JPo="}],"size":2313,"noattachment":false,"key":"/character-reference-invalid/-/character-reference-invalid-1.1.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/character-reference-invalid_1.1.2_1524063471244_0.4760851781293134"},"_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":1524063471335,"_cnpm_publish_time":1524063471335,"dist-tags":{"latest":"2.0.1"}}