{"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":{"integrity":"sha512-dn9tN+oCMaRri8Mg5NgJmD3WAzGMpSxrsH3yestPzn6BeIOw1JaUh0uTMaRz50HP484JrBf/5sZF60gLlb+v9Q==","shasum":"7f5f6df5d15b0f29b9ab1f401568d11ddafd15e3","tarball":"http://registry-npm.ywwl.com/micromark-util-normalize-identifier/download/micromark-util-normalize-identifier-1.0.0-alpha.1.tgz","fileCount":4,"unpackedSize":5926,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgveZGCRA9TVsSAnZWagAAZRsP/1pSyr3jD9xMkCgM1+SS\nL4Q5MByrsP+2kFHTlGf0ALEvVUlGP8zVhKGTXLTxzxJ/oHE2Xqu9geMEfPT+\nMGUgrNhHsow4Q1Oh4gte5XoSFAqWlE9ZazmtL/tI1nXk/tgQqqXhF8n++R4D\nZx+0tPI8sFnDo+ej2sSOTLlccgN9KaqPorDzxr2b86nlEEMMA4t5tZuDgsKl\nMu4h1YKwoNHspFRi4C7D3msNDI39oGP7g8+VNM3h+Pb5seSMoOqfhHcmlVua\ntdfEUJqPaLl/94mGPIBDKy1tc8hmz+7wG7ibsGL/f9VxIQFI9Q7LY0KVE2IC\nEZ/s+75jmTo8ja01hU/Z4AmbT9lQS6y9r0SgdnX8vTDHxqurfgX9tjjre0ly\nylc1GT++uNbI4YLgwGLah0U+FOIeIPCGKltKvQPQtHC3LqWO2fg5bQSlxH7A\naUWA36oqTEiBz14ZR4UAiPaqsmB9XHbK72j1mBtb40Dg4GN5XzPi/RZXTsqQ\n4GWBoTX8znXrsO/5o9FpDgiPlXzrQ4bsNT4I6xCIQL+gQL0QQWD08iBwHt40\n3fz0rflk2YKoGkyysFGVPqftcZx1Ko0zaQMMgy1EUJv+Woaz9sOm+1BsNBAe\n2JlEZFH9h1bd/ZuX6UoC2oRMQSagatvMLE93lVuYttCTTMHHAIgYs/Tu+Azl\nRZma\r\n=QIdc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOOS/Jfgy2wPmwPjxO3VxSYzH5PgtW+EL2gvBIkc7x1AIgGNGnX8CH7vUwuJxntom3jG6S5qZUi/Os9lu6TJJTvko="}],"size":2171,"noattachment":false,"key":"/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-1.0.0-alpha.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/micromark-util-normalize-identifier_1.0.0-alpha.1_1623057990825_0.5559971364121763"},"_hasShrinkwrap":false,"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\n[micromark][] utility normalize identifiers.\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    *   [`normalizeIdentifier(value)`](#normalizeidentifiervalue)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package exposes an algorithm to normalize identifiers found in markdown.\n\n## When should I use this?\n\nThis package might be useful when you are making your own micromark extensions.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install micromark-util-normalize-identifier\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {normalizeIdentifier} from 'https://esm.sh/micromark-util-normalize-identifier@1'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {normalizeIdentifier} from 'https://esm.sh/micromark-util-normalize-identifier@1?bundle'\n</script>\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 identifier\n[`normalizeIdentifier`][api-normalize-identifier].\nThere is no default export.\n\n### `normalizeIdentifier(value)`\n\nNormalize an identifier (as found in references, definitions).\n\nCollapses 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 (`Θ`)).\nSo, to get a canonical form, we perform both lower- and uppercase.\n\nUsing uppercase last makes sure keys will never interact with default\nprototypal values (such as `constructor`): nothing in the prototype of `Object`\nis uppercase.\n\n###### Parameters\n\n*   `value` (`string`)\n    — identifier to normalize\n\n###### Returns\n\nNormalized identifier (`string`).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`micromark-util-normalize-identifier@^2`, compatible with Node.js 16.\nThis package works with `micromark@^3`.\n\n## Security\n\nThis package is safe.\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/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-util-normalize-identifier\n\n[bundle-size]: https://bundlejs.com/?q=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[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\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/main/security.md\n\n[contributing]: https://github.com/micromark/.github/blob/main/contributing.md\n\n[support]: https://github.com/micromark/.github/blob/main/support.md\n\n[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md\n\n[typescript]: https://www.typescriptlang.org\n\n[micromark]: https://github.com/micromark/micromark\n\n[api-normalize-identifier]: #normalizeidentifiervalue\n","publish_time":1623057990974,"_cnpm_publish_time":1623057990974,"dist-tags":{"latest":"2.0.1","next":"1.0.0-beta.1"}}