{"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},"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","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":{"integrity":"sha512-mhOwjfdyj7i27MV0uD7FdTT3tSUliCeaX6HQXhLN12Imoaa0LA8B49DbDGi+lwsQpgx0qOYO59YkF7wSFMWytw==","shasum":"1aaa93c325726fa969fd9a301b9bd47e516d483f","tarball":"http://registry-npm.ywwl.com/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-1.0.0-alpha.3.tgz","fileCount":6,"unpackedSize":6912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyjJ2CRA9TVsSAnZWagAAIFAP/jTgERRHBdUYp2w+EGI1\ntO5c1SjebzPLzZ9cZL3wFMxiP8VOTHuJdsjp2H9kl+LzThhHN+PCucKRG/EF\n6fdFUNfIEIkXMDujXSLNyWYbyA5+cf5PDaN8X4ql4qvl5BF0AfCy1lhoCp5f\nxL8qGKU9L8qVRh9V4hxQNGKU8srDo2I1jO0NbTrgh6mRVro1Ku0CboQDqch8\nvxAbiyWlgnGsnQ9RsP7f2QDBDCmW36jq9AlTUU/TkkVf0XbAYDqClZbpNHzR\nZNLooYtYtKrqVyUUSQzwVsuqM7BvpqCqlqKfCioAzW+CSLIY34zd4UCfwQuV\nDEPJunVNwcjK4K9WAFTvU1qCyQeuCLP1UD12Erx85DW1dvOpnr597luvGXs7\n7QhM2Tg6iiwonMd2fdwtrJSoLXy1xazYjNiRQkqDKjFb8AgFTe19m+BPQYB5\nUeXK6AGFGAI+JeaVdu4bS+1NJK/IUdXeA9w+OD5R6H/we8KCCQcl0Mm3Qj2N\nMoX5Xy/PiMrrTaACvKLF+VA5O2NAvihOcJBTiT8sqSXFrsq/jXCgxsAyFm1J\n6eh3Q1+l6hsiwfSKsz1L0SdLCr8FtGSJGPsZeuWjvuNVKRGeEQY+MvNisb4L\n3qFXcSQUeM+0TiZee1ZLcMfy0zVdDBUXMbXgAtRJzfJ3sF4j7Ea7lJpt7KzA\n760d\r\n=313I\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG775uzP9lHOB1URFoipIGZyqvaMMApUt9kja64Qi5fcAiEAgQyJQj4+bjxwRkWetHFrbP23z+zKAu9jE03ZwZ7Pbd4="}],"size":2261,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-alpha.3.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_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,"dist-tags":{"latest":"2.0.1","next":"1.0.0-beta.1"}}