{"_id":"@depup/micromark-factory-whitespace","_rev":"2-5a3ecb3dfa75333991f57d8eadfb080f","name":"@depup/micromark-factory-whitespace","dist-tags":{"latest":"2.0.1-depup.1"},"versions":{"2.0.1-depup.0":{"name":"@depup/micromark-factory-whitespace","version":"2.0.1-depup.0","keywords":["depup","dependency-bumped","updated-deps","micromark-factory-whitespace","micromark","factory","whitespace"],"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","_id":"@depup/micromark-factory-whitespace@2.0.1-depup.0","maintainers":[{"name":"chiefmikey","email":"wolfemikl@gmail.com"}],"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":{"unicorn/prefer-code-point":"off"},"prettier":true},"dist":{"shasum":"11349483046e80a555922746c07af12fa92677e7","tarball":"https://registry.npmjs.org/@depup/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1-depup.0.tgz","fileCount":11,"integrity":"sha512-D86Tz7FswwvvkPgtIfpiB75kanoCcWzrKBHtEJOEUFF7dT2fEPT1A/UHMcDyvH6Jk4WAbMxjnl5u+n6DKq0Mhg==","signatures":[{"sig":"MEUCIG3H4Lb4nNak06DC7HkWB3wqDa75N2AGV9QScBvV8n/kAiEA6QQRHT6Cx4y2+L3UHY1qUOGRta63fEmr9y94QK62AFI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14297},"type":"module","depup":{"changes":{"micromark-util-types":{"to":"^2.0.2","from":"^2.0.0"},"micromark-util-symbol":{"to":"^2.0.1","from":"^2.0.0"},"micromark-factory-space":{"to":"^2.0.1","from":"^2.0.0"},"micromark-util-character":{"to":"^2.1.1","from":"^2.0.0"}},"smokeTest":"passed","depsUpdated":4,"processedAt":"2026-03-17T16:37:33.390Z","originalPackage":"micromark-factory-whitespace","originalVersion":"2.0.1"},"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":"4696d3349a039de4b13745770d87bbf7fd3d5b12","scripts":{"build":"micromark-build"},"_npmUser":{"name":"chiefmikey","email":"wolfemikl@gmail.com"},"repository":{"url":"git+https://github.com/micromark/micromark.git#main","type":"git"},"_npmVersion":"11.9.0","description":"[DepUp] micromark factory to parse markdown whitespace (found in lots of places)","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","dependencies":{"micromark-util-types":"^2.0.2","micromark-util-symbol":"^2.0.1","micromark-factory-space":"^2.0.1","micromark-util-character":"^2.1.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/micromark-factory-whitespace_2.0.1-depup.0_1773765457018_0.23529915286759073","host":"s3://npm-registry-packages-npm-production"}},"2.0.1-depup.1":{"xo":{"envs":["shared-node-browser"],"rules":{"unicorn/prefer-code-point":"off"},"prettier":true},"_id":"@depup/micromark-factory-whitespace@2.0.1-depup.1","bugs":{"url":"https://github.com/micromark/micromark/issues"},"dist":{"shasum":"fcd3954d4093b6bbdec995c8b60e244c20b3773b","tarball":"https://registry.npmjs.org/@depup/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1-depup.1.tgz","fileCount":11,"integrity":"sha512-gybcNZqdKyZAVtMYBiIfAEzQQT+jkBTXeDKhWNthDgdcOgRei6IUvMxJT1NV2zSNSESAn7aODtrHlSCLtPstsQ==","signatures":[{"sig":"MEUCICzLkPP33P5Ql1byxATO+EFNl0dRl1HG2/WctKDVhal8AiEAzCzRPdP6bzzezFV0i9Bs3Ya3KkjZAuAkQ1dcOfmyJ7g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYoxQWzKef/1wTeoFBn5FBHikwCrBV5h3bbv+AdrvkpgIhAMxeGYtJP/O45iXwf5bDcOuvUlJL4vl++UASm4HyaIxi"}],"unpackedSize":14345},"name":"@depup/micromark-factory-whitespace","type":"module","depup":{"changes":{"micromark-util-types":{"to":"^2.0.3","from":"^2.0.0"},"micromark-util-symbol":{"to":"^2.0.1","from":"^2.0.0"},"micromark-factory-space":{"to":"^2.1.0","from":"^2.0.0"},"micromark-util-character":{"to":"^2.1.1","from":"^2.0.0"}},"smokeTest":"passed","depsUpdated":4,"processedAt":"2026-09-26T16:11:25.900Z","originalPackage":"micromark-factory-whitespace","originalVersion":"2.0.1"},"types":"./index.d.ts","author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"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":"1de68819cc47744488f078edb8ed56273d231d48","license":"MIT","scripts":{"build":"micromark-build"},"version":"2.0.1-depup.1","_npmUser":{"name":"chiefmikey","email":"wolfemikl@gmail.com"},"homepage":"https://github.com/micromark/micromark/tree/main#readme","keywords":["micromark-factory-whitespace","depup","updated-dependencies","security","latest","patched","micromark","factory","whitespace"],"repository":{"url":"git+https://github.com/micromark/micromark.git#main","type":"git"},"_npmVersion":"11.19.0","description":"micromark factory to parse markdown whitespace (found in lots of places) (with updated dependencies)","directories":{},"maintainers":[{"name":"chiefmikey","email":"wolfemikl@gmail.com"}],"sideEffects":false,"_nodeVersion":"24.21.0","contributors":[{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"micromark-util-types":"^2.0.3","micromark-util-symbol":"^2.0.1","micromark-factory-space":"^2.1.0","micromark-util-character":"^2.1.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/micromark-factory-whitespace_2.0.1-depup.1_1790439142683_0.11807495318850747"}}},"time":{"created":"2026-03-17T16:37:36.902Z","modified":"2026-09-26T16:12:23.057Z","2.0.1-depup.0":"2026-03-17T16:37:37.149Z","2.0.1-depup.1":"2026-09-26T16:12:22.806Z"},"bugs":{"url":"https://github.com/micromark/micromark/issues"},"author":{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"},"license":"MIT","homepage":"https://github.com/micromark/micromark/tree/main#readme","keywords":["micromark-factory-whitespace","depup","updated-dependencies","security","latest","patched","micromark","factory","whitespace"],"repository":{"url":"git+https://github.com/micromark/micromark.git#main","type":"git"},"description":"micromark factory to parse markdown whitespace (found in lots of places) (with updated dependencies)","contributors":[{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"maintainers":[{"name":"chiefmikey","email":"wolfemikl@gmail.com"}],"readme":"# micromark-factory-whitespace\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][] factory to parse [markdown line endings or spaces][ws] (found in\nlots of places).\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  * [`factoryWhitespace(…)`](#factorywhitespace)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package exposes states to parse whitespace.\n\n## When should I use this?\n\nThis package is 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-factory-whitespace\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {factoryWhitespace} from 'https://esm.sh/micromark-factory-whitespace@1'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {factoryWhitespace} from 'https://esm.sh/micromark-factory-whitespace@1?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {factoryWhitespace} from 'micromark-factory-whitespace'\nimport {codes, types} from 'micromark-util-symbol'\n\n// A micromark tokenizer that uses the factory:\n/**\n * @this {TokenizeContext}\n *   Context.\n * @type {Tokenizer}\n */\nfunction tokenizeTitle(effects, ok, nok) {\n  return start\n\n  /** @type {State} */\n  function start(code) {\n    return markdownLineEndingOrSpace(code)\n      ? factoryWhitespace(effects, before)(code)\n      : nok(code)\n  }\n\n  // …\n}\n```\n\n## API\n\nThis module exports the identifier\n[`factoryWhitespace`][api-factory-whitespace].\nThere is no default export.\n\n### `factoryWhitespace(…)`\n\nParse spaces and tabs.\n\nThere is no `nok` parameter:\n\n* line endings or spaces in markdown are often optional, in which case this\n  factory can be used and `ok` will be switched to whether spaces were found\n  or not\n* one line ending or space can be detected with\n  [`markdownLineEndingOrSpace(code)`][ws] right before using\n  `factoryWhitespace`\n\n###### Parameters\n\n* `effects` (`Effects`)\n  — context\n* `ok` (`State`)\n  — state switched to when successful\n\n###### Returns\n\nStart state (`State`).\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-factory-whitespace@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-factory-whitespace.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-factory-whitespace\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-factory-whitespace\n\n[bundle-size]: https://bundlejs.com/?q=micromark-factory-whitespace\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[ws]: https://github.com/micromark/micromark/tree/main/packages/micromark-util-character#markdownlineendingorspacecode\n\n[typescript]: https://www.typescriptlang.org\n\n[micromark]: https://github.com/micromark/micromark\n\n[api-factory-whitespace]: #factorywhitespace\n","readmeFilename":"readme.md"}