{"name":"micromark-util-subtokenize","version":"2.0.4","keywords":["micromark","util","utility","tokenize"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"micromark-util-subtokenize@2.0.4","contributors":[{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/micromark/micromark/tree/main#readme","bugs":{"url":"https://github.com/micromark/micromark/issues"},"xo":{"envs":["shared-node-browser"],"rules":{"max-depth":"off","unicorn/prefer-code-point":"off"},"prettier":true},"dist":{"shasum":"50d8ca981373c717f497dc64a0dbfccce6c03ed2","tarball":"http://registry-npm.ywwl.com/micromark-util-subtokenize/download/micromark-util-subtokenize-2.0.4.tgz","fileCount":15,"integrity":"sha512-N6hXjrin2GTJDe3MVjf5FuXpm12PGm80BrUAeub9XFXca8JZbP+oIwY4LJSVwFUCL1IPm/WwSVUN7goFHmSGGQ==","signatures":[{"sig":"MEUCIQCVZkAXKrVdUNF3AVIzRrZA1MyIKSYoUIKRjGXXI9Pp+wIgNXWOIoDunL/MW46qCCQykF9feBHJD4jcDqQ8OAR0r14=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":50778,"size":9549,"noattachment":false,"key":"/micromark-util-subtokenize/-/micromark-util-subtokenize-2.0.4.tgz"},"type":"module","types":"./index.d.ts","exports":{"default":"./index.js","development":"./dev/index.js"},"funding":[{"url":"https://github.com/sponsors/unifiedjs","type":"GitHub Sponsors"},{"url":"https://opencollective.com/unified","type":"OpenCollective"}],"gitHead":"b8543514ef1f7e10f979b7561b10abbc26c7bab0","scripts":{"build":"micromark-build"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"git+https://github.com/micromark/micromark.git#main","type":"git"},"_npmVersion":"11.0.0","description":"micromark utility to tokenize subtokens","directories":{},"sideEffects":false,"_nodeVersion":"23.1.0","dependencies":{"devlop":"^1.0.0","micromark-util-types":"^2.0.0","micromark-util-symbol":"^2.0.0","micromark-util-chunked":"^2.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/micromark-util-subtokenize_2.0.4_1737550118710_0.8480355034518088","host":"s3://npm-registry-packages-npm-production"},"readme":"# micromark-util-subtokenize\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 to tokenize subtokens.\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  * [`subtokenize(events)`](#subtokenizeevents)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package exposes a micromark internal that you probably don’t need.\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-subtokenize\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {subtokenize} from 'https://esm.sh/micromark-util-subtokenize@1'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {subtokenize} from 'https://esm.sh/micromark-util-subtokenize@1?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {subtokenize} from 'micromark-util-subtokenize'\n\n/**\n * Content is transparent: it’s parsed right now. That way, definitions are also\n * parsed right now: before text in paragraphs (specifically, media) are parsed.\n *\n * @type {Resolver}\n */\nfunction resolveContent(events) {\n  subtokenize(events)\n  return events\n}\n```\n\n## API\n\nThis module exports the identifiers [`subtokenize`][api-subtokenize].\nThere is no default export.\n\n### `subtokenize(events)`\n\nTokenize subcontent.\n\n###### Parameters\n\n* `events` (`Array<Event>`)\n  — list of events\n\n###### Returns\n\nWhether subtokens were found (`boolean`).\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-subtokenize@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[api-subtokenize]: #subtokenizeevents\n\n[author]: https://wooorm.com\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[build]: https://github.com/micromark/micromark/actions\n\n[build-badge]: https://github.com/micromark/micromark/workflows/main/badge.svg\n\n[bundle-size]: https://bundlejs.com/?q=micromark-util-subtokenize\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-subtokenize\n\n[chat]: https://github.com/micromark/micromark/discussions\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md\n\n[contributing]: https://github.com/micromark/.github/blob/main/contributing.md\n\n[coverage]: https://codecov.io/github/micromark/micromark\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-util-subtokenize\n\n[downloads-badge]: https://img.shields.io/npm/dm/micromark-util-subtokenize.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[health]: https://github.com/micromark/.github\n\n[license]: https://github.com/micromark/micromark/blob/main/license\n\n[micromark]: https://github.com/micromark/micromark\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[opencollective]: https://opencollective.com/unified\n\n[securitymd]: https://github.com/micromark/.github/blob/main/security.md\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[support]: https://github.com/micromark/.github/blob/main/support.md\n\n[typescript]: https://www.typescriptlang.org\n","publish_time":1737550118940,"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_cnpm_publish_time":1737550118940,"dist-tags":{"latest":"2.1.0","next":"1.0.0-beta.1"}}