{"_id":"micromark-util-normalize-identifier","_rev":"267207","name":"micromark-util-normalize-identifier","description":"micromark utility normalize identifiers (as found in references, definitions)","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:34.000Z","created":"2021-06-07T09:26:30.974Z","1.0.0":"2021-06-22T19:04:18.688Z","1.0.0-beta.1":"2021-06-20T12:13:31.145Z","1.0.0-alpha.3":"2021-06-16T17:18:45.735Z","1.0.0-alpha.2":"2021-06-07T13:36:07.399Z","1.0.0-alpha.1":"2021-06-07T09:26:30.974Z"},"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-normalize-identifier","version":"1.0.0","description":"micromark utility normalize identifiers (as found in references, definitions)","license":"MIT","keywords":["micromark","util","utility","normalize","id","identifier"],"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-normalize-identifier@1.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"4a3539cb8db954bbec5203952bfe8cedadae7828","size":2254,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-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-normalize-identifier_1.0.0_1624388658548_0.47434878613576736"},"_hasShrinkwrap":false,"publish_time":1624388658688,"_cnpm_publish_time":1624388658688,"_cnpmcore_publish_time":"2021-12-14T05:19:33.522Z"},"1.0.0-beta.1":{"name":"micromark-util-normalize-identifier","version":"1.0.0-beta.1","description":"micromark utility normalize identifiers (as found in references, definitions)","license":"MIT","keywords":["micromark","util","utility","normalize","id","identifier"],"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},"readmeFilename":"readme.md","homepage":"https://github.com/micromark/micromark/tree/main#readme","_id":"micromark-util-normalize-identifier@1.0.0-beta.1","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"5cc262e8c182204487c1aca4c9c74cce4d27e986","size":2260,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-beta.1.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-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-normalize-identifier_1.0.0-beta.1_1624191211019_0.08247018225578384"},"_hasShrinkwrap":false,"publish_time":1624191211145,"_cnpm_publish_time":1624191211145,"_cnpmcore_publish_time":"2021-12-14T05:19:33.717Z"},"1.0.0-alpha.3":{"name":"micromark-util-normalize-identifier","version":"1.0.0-alpha.3","description":"micromark utility normalize identifiers (as found in references, definitions)","license":"MIT","keywords":["micromark","util","utility","normalize","id","identifier"],"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-alpha.3"},"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},"readmeFilename":"readme.md","homepage":"https://github.com/micromark/micromark/tree/main#readme","_id":"micromark-util-normalize-identifier@1.0.0-alpha.3","_nodeVersion":"16.2.0","_npmVersion":"7.16.0","dist":{"shasum":"1aaa93c325726fa969fd9a301b9bd47e516d483f","size":2261,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-alpha.3.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-1.0.0-alpha.3.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-normalize-identifier_1.0.0-alpha.3_1623863925598_0.18226950490965388"},"_hasShrinkwrap":false,"publish_time":1623863925735,"_cnpm_publish_time":1623863925735,"_cnpmcore_publish_time":"2021-12-14T05:19:33.890Z"},"1.0.0-alpha.2":{"name":"micromark-util-normalize-identifier","version":"1.0.0-alpha.2","description":"micromark utility normalize identifiers (as found in references, definitions)","license":"MIT","keywords":["micromark","util","utility","normalize","id","identifier"],"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-alpha.2"},"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},"readmeFilename":"readme.md","homepage":"https://github.com/micromark/micromark/tree/main#readme","_id":"micromark-util-normalize-identifier@1.0.0-alpha.2","_nodeVersion":"16.2.0","_npmVersion":"7.15.1","dist":{"shasum":"b5d848af0deac96cb8b32e31322c97f25e24e8a7","size":2262,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-alpha.2.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-1.0.0-alpha.2.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-normalize-identifier_1.0.0-alpha.2_1623072967287_0.5198570575425892"},"_hasShrinkwrap":false,"publish_time":1623072967399,"_cnpm_publish_time":1623072967399,"_cnpmcore_publish_time":"2021-12-14T05:19:34.100Z"},"1.0.0-alpha.1":{"name":"micromark-util-normalize-identifier","version":"1.0.0-alpha.1","description":"micromark utility normalize identifiers (as found in references, definitions)","license":"MIT","keywords":["micromark","util","utility","normalize","id","identifier"],"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"}],"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-alpha.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-normalize-identifier@1.0.0-alpha.1","_nodeVersion":"16.2.0","_npmVersion":"7.15.1","dist":{"shasum":"7f5f6df5d15b0f29b9ab1f401568d11ddafd15e3","size":2171,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-alpha.1.tgz","tarball":"http://name.csiicloud.com:7001/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-1.0.0-alpha.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-normalize-identifier_1.0.0-alpha.1_1623057990825_0.5559971364121763"},"_hasShrinkwrap":false,"publish_time":1623057990974,"_cnpm_publish_time":1623057990974,"_cnpmcore_publish_time":"2021-12-14T05:19:34.313Z"}},"readme":"# micromark-util-normalize-identifier\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 normalize identifiers (as found in references, definitions).\n\n## Contents\n\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`normalizeIdentifier(value)`](#normalizeidentifiervalue)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install micromark-util-normalize-identifier\n```\n\n## Use\n\n```js\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n\nnormalizeIdentifier(' a ') // 'A'\nnormalizeIdentifier('a\\t\\r\\nb') // 'A B'\nnormalizeIdentifier('ТОЛПОЙ') // 'ТОЛПОЙ'\nnormalizeIdentifier('Толпой') // 'ТОЛПОЙ'\n```\n\n## API\n\nThis module exports the following identifiers: `normalizeIdentifier`.\nThere is no default export.\n\n### `normalizeIdentifier(value)`\n\nNormalize an identifier (such as used in definitions).\nCollapse Markdown whitespace, trim, and then lower- and uppercase.\n\nSome characters are considered “uppercase”, such as U+03F4 (`ϴ`), but if their\nlowercase counterpart (U+03B8 (`θ`)) is uppercased will result in a different\nuppercase character (U+0398 (`Θ`)).\nHence, to get that form, we perform both lower- and uppercase.\n\nUsing uppercase last makes sure keys will not interact with default prototypal\nmethods: no method is uppercase.\n\n###### Parameters\n\n*   `value` (`string`) — Identifier to normalize.\n\n###### Returns\n\n`string` — Normalized value.\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"}