{"_id":"micromark-util-decode-numeric-character-reference","_rev":"267202","name":"micromark-util-decode-numeric-character-reference","description":"micromark utility to decode numeric character references","dist-tags":{"latest":"1.0.0","next":"1.0.0-beta.1"},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"time":{"modified":"2023-03-27T19:08:32.000Z","created":"2021-06-20T12:13:18.702Z","1.0.0":"2021-06-22T19:04:07.792Z","1.0.0-beta.1":"2021-06-20T12:13:18.702Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/micromark/micromark.git#main"},"versions":{"1.0.0":{"name":"micromark-util-decode-numeric-character-reference","version":"1.0.0","description":"micromark utility to decode numeric character references","license":"MIT","keywords":["micromark","util","utility","decode","numeric","number","character","reference"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark.git#main"},"bugs":{"url":"https://github.com/micromark/micromark/issues"},"funding":[{"type":"GitHub Sponsors","url":"https://github.com/sponsors/unifiedjs"},{"type":"OpenCollective","url":"https://opencollective.com/unified"}],"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":"dev/index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"micromark-util-symbol":"^1.0.0"},"scripts":{"build":"rimraf \"*.d.ts\" \"{dev/,lib/}**/*.d.ts\" && tsc && micromark-build && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"homepage":"https://github.com/micromark/micromark/tree/main#readme","_id":"micromark-util-decode-numeric-character-reference@1.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"dcc85f13b5bd93ff8d2868c3dba28039d490b946","size":2365,"noattachment":false,"key":"/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-decode-numeric-character-reference/download/micromark-util-decode-numeric-character-reference-1.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-util-decode-numeric-character-reference_1.0.0_1624388647458_0.38278795698855994"},"_hasShrinkwrap":false,"publish_time":1624388647792,"_cnpm_publish_time":1624388647792,"_cnpmcore_publish_time":"2021-12-14T05:19:32.051Z"},"1.0.0-beta.1":{"name":"micromark-util-decode-numeric-character-reference","version":"1.0.0-beta.1","description":"micromark utility to decode numeric character references","license":"MIT","keywords":["micromark","util","utility","decode","numeric","number","character","reference"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark.git#main"},"bugs":{"url":"https://github.com/micromark/micromark/issues"},"funding":[{"type":"GitHub Sponsors","url":"https://github.com/sponsors/unifiedjs"},{"type":"OpenCollective","url":"https://opencollective.com/unified"}],"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":"dev/index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"micromark-util-symbol":"^1.0.0-beta.1"},"scripts":{"build":"rimraf \"*.d.ts\" \"{dev/,lib/}**/*.d.ts\" && tsc && micromark-build && type-coverage"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"homepage":"https://github.com/micromark/micromark/tree/main#readme","_id":"micromark-util-decode-numeric-character-reference@1.0.0-beta.1","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"1d100502608ef6f7e2366e69a2fbee95647bfc80","size":2369,"noattachment":false,"key":"/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-1.0.0-beta.1.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-decode-numeric-character-reference/download/micromark-util-decode-numeric-character-reference-1.0.0-beta.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"npm:wooorm","email":""},{"name":"wooorm","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-util-decode-numeric-character-reference_1.0.0-beta.1_1624191198586_0.8325799731114902"},"_hasShrinkwrap":false,"publish_time":1624191198702,"_cnpm_publish_time":1624191198702,"_cnpmcore_publish_time":"2021-12-14T05:19:32.286Z"}},"readme":"# micromark-util-decode-numeric-character-reference\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][bundle-size-badge]][bundle-size]\n[![Sponsors][sponsors-badge]][opencollective]\n[![Backers][backers-badge]][opencollective]\n[![Chat][chat-badge]][chat]\n\nmicromark utility to decode numeric character references.\n\n## Contents\n\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`decodeNumericCharacterReference(value)`](#decodenumericcharacterreferencevalue)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install micromark-util-decode-numeric-character-reference\n```\n\n## Use\n\n```js\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\n\ndecodeNumericCharacterReference('41', 16) // 'A'\ndecodeNumericCharacterReference('65', 10) // 'A'\ndecodeNumericCharacterReference('A', 16) // '\\n'\ndecodeNumericCharacterReference('7F', 16) // '�' - Control\ndecodeNumericCharacterReference('110000', 16) // '�' - Out of range\n```\n\n## API\n\nThis module exports the following identifiers:\n`decodeNumericCharacterReference`.\nThere is no default export.\n\n### `decodeNumericCharacterReference(value)`\n\nSort of like `String.fromCharCode(Number.parseInt(value, base))`,\nbut makes non-characters and control characters safe.\n\n###### Parameters\n\n*   `value` (`string`) — Value to decode.\n*   `base` (`number`, probably `10` or `16`) — Numeric base.\n\n###### Returns\n\n`string` — Character code.\n\n## Security\n\nSee [`security.md`][securitymd] in [`micromark/.github`][health] for how to\nsubmit a security report.\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`micromark/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organisation, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg\n\n[build]: https://github.com/micromark/micromark/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg\n\n[coverage]: https://codecov.io/github/micromark/micromark\n\n[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-normalize-identifier.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-util-normalize-identifier\n\n[bundle-size-badge]: https://img.shields.io/bundlephobia/minzip/micromark-util-normalize-identifier.svg\n\n[bundle-size]: https://bundlephobia.com/result?p=micromark-util-normalize-identifier\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[opencollective]: https://opencollective.com/unified\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/micromark/micromark/discussions\n\n[license]: https://github.com/micromark/micromark/blob/main/license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/micromark/.github\n\n[securitymd]: https://github.com/micromark/.github/blob/HEAD/security.md\n\n[contributing]: https://github.com/micromark/.github/blob/HEAD/contributing.md\n\n[support]: https://github.com/micromark/.github/blob/HEAD/support.md\n\n[coc]: https://github.com/micromark/.github/blob/HEAD/code-of-conduct.md\n","_attachments":{},"homepage":"https://github.com/micromark/micromark/tree/main#readme","bugs":{"url":"https://github.com/micromark/micromark/issues"},"license":"MIT"}