{"name":"unist-util-find-all-after","version":"3.0.2","description":"unist utility to find nodes after another node","license":"MIT","keywords":["unist","unist-util","util","utility","tree","node","find","after"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-find-all-after.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-find-all-after/issues"},"funding":{"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"},{"name":"Lucas Brandstaetter","email":"lucas@brandstaetter.tech","url":"https://github.com/Roang-zero1"}],"types":"index.d.ts","dependencies":{"unist-util-is":"^4.0.0"},"devDependencies":{"@types/tape":"^4.0.0","browserify":"^17.0.0","dtslint":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","remark":"^13.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","typescript":"^4.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify . -s unistUtilFindAllAfter -o unist-util-find-all-after.js","build-mangle":"browserify . -s unistUtilFindAllAfter -p tinyify -o unist-util-find-all-after.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint .","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"eqeqeq":["error","always",{"null":"ignore"}],"guard-for-in":"off","no-eq-null":"off"},"ignore":["unist-util-find-all-after.js","*.ts"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"2470bba4005679bdfa8e255a54a43f64b41e2dd7","homepage":"https://github.com/syntax-tree/unist-util-find-all-after#readme","_id":"unist-util-find-all-after@3.0.2","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"integrity":"sha512-xaTC/AGZ0rIM2gM28YVRAFPIZpzbpDtU3dRmp7EXlNVA8ziQc4hY3H7BHXM1J49nEmiqc3svnqMReW+PGqbZKQ==","shasum":"fdfecd14c5b7aea5e9ef38d5e0d5f774eeb561f6","tarball":"http://registry-npm.ywwl.com/unist-util-find-all-after/download/unist-util-find-all-after-3.0.2.tgz","fileCount":5,"unpackedSize":9782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfntoOCRA9TVsSAnZWagAA0pgQAKTLLkuP1t3bJ5iQ3xfJ\nmHuB2lnPHaBjGXPQ+pGLCTHLe0jxysloO0JEXPRiL7C+RIyKVNLTp2QWzUhd\nc4/iLjz9pfWi7oi7NguffT+cr7vX/ALnvhwlz90oCAEoIBQgJ6FUQQVOk+TC\nCX/oF3oVsOjMKur6zN4VVW1zJbBk/W4qJiXkSZe5lAWeBVQoKot8oK6phlOW\nM2XMQjgT7CvFoG6nFskxtSUCqHzLKT5GL82pXtimdlobDr7CEyonxU3Ks1Ge\nX6/ZnkYoSKLxhAtDRO2klVQtFzgX3qxFcE4w4te1/7KRblhCIIkh4HFW6lJu\n7HiS8zChU45G4aObCEyTHmsa4LsgB4rFoETbdgHT9/1R9rTQqO2j3rUWsAcJ\nTaGMeQ7A90KkZdSvoT81Eqh+DFSvrCYSzsiKXiWzVFneP/kxtnVgkyfaUd0Q\nHJibTZKjmz/hDf4dgxlJhGA/LKV1eX6yaejBRvXO/lZC7mMXIQo84WYGUQV0\n8+RQl/2oqWJOZPzoBMPuuGAzCniJuxard8xC61ymcpF0zCuUQ1efG6XqJTPk\nzW5piyo6PU1kI4W6jRswfNtWba5hp2st8v4NF1fA8tqJfjc9zdXqe1NfCd80\nIH7JE0H9s+w26X9xeuuILTJmil2dH992/gGBYSVBl0sYegw/vCr1YxSAmHSe\nG9gg\r\n=NzEv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD59KfTMkuix76GtZoWPmfzXkCTTRpUR5KYVt0sAjpyLAIhALSSbmkelUkL8u6Js22cZ8ZuOPC8rSCoVJr4esGZIk5A"}],"size":3682,"noattachment":false,"key":"/unist-util-find-all-after/-/unist-util-find-all-after-3.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-find-all-after_3.0.2_1604246030449_0.2353753929368445"},"_hasShrinkwrap":false,"readme":"# unist-util-find-all-after\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n[![Size][size-badge]][size]\n\n[unist][] utility to find nodes after another node.\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    *   [`findAllAfter(parent, child|index[, test])`](#findallafterparent-childindex-test)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a tiny utility that you can use to find nodes after another node or\nbefore an index in a parent.\n\n## When should I use this?\n\nThis is super tiny.\nYou can of course do it yourself.\nBut this helps when integrating with the rest of unified and unist.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install unist-util-find-all-after\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {findAllAfter} from 'https://esm.sh/unist-util-find-all-after@5'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {findAllAfter} from 'https://esm.sh/unist-util-find-all-after@5?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {u} from 'unist-builder'\nimport {findAllAfter} from 'unist-util-find-all-after'\n\nconst tree = u('tree', [\n  u('leaf', 'leaf 1'),\n  u('parent', [u('leaf', 'leaf 2'), u('leaf', 'leaf 3')]),\n  u('leaf', 'leaf 4'),\n  u('parent', [u('leaf', 'leaf 5')]),\n  u('leaf', 'leaf 6'),\n  u('empty'),\n  u('leaf', 'leaf 7')\n])\n\nconsole.log(findAllAfter(tree, 1, 'leaf'))\n```\n\nYields:\n\n```js\n[\n  {type: 'leaf', value: 'leaf 4'},\n  {type: 'leaf', value: 'leaf 6'},\n  {type: 'leaf', value: 'leaf 7'}\n]\n```\n\n## API\n\nThis package exports the identifier [`findAllAfter`][api-find-all-after].\nThere is no default export.\n\n### `findAllAfter(parent, child|index[, test])`\n\nFind the nodes in `parent` before a `child` or before an index, that pass\n`test`.\n\n###### Parameters\n\n*   `parent` ([`Node`][node])\n    — parent node\n*   `index` (`number`)\n    — index of child in `parent`\n*   `child` ([`Node`][node])\n    — child in `parent`\n*   `test` ([`Test`][test])\n    — `unist-util-is`-compatible test\n\n###### Returns\n\nChildren of `parent` ([`Array<Node>`][node]).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types (types for the test are in `unist-util-is`).\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`unist-util-find-all-after@^5`, compatible with Node.js 16.\n\n## Related\n\n*   [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit)\n    — walk the tree\n*   [`unist-util-visit-parents`](https://github.com/syntax-tree/unist-util-visit-parents)\n    — walk the tree with a stack of parents\n*   [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter)\n    — create a new tree with all nodes that pass a test\n*   [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)\n    — create a new tree with all nodes mapped by a given function\n*   [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap)\n    — create a new tree by mapping (to an array) with the given function\n*   [`unist-util-find-after`](https://github.com/syntax-tree/unist-util-find-after)\n    — find a node after another node\n*   [`unist-util-find-before`](https://github.com/syntax-tree/unist-util-find-before)\n    — find a node before another node\n*   [`unist-util-find-all-after`](https://github.com/syntax-tree/unist-util-find-all-after)\n    — find all nodes after another node\n*   [`unist-util-find-all-before`](https://github.com/syntax-tree/unist-util-find-all-before)\n    — find all nodes before another node\n*   [`unist-util-find-all-between`](https://github.com/mrzmmr/unist-util-find-all-between)\n    — find all nodes between two nodes\n*   [`unist-util-remove`](https://github.com/syntax-tree/unist-util-remove)\n    — remove nodes from a tree that pass a test\n*   [`unist-util-select`](https://github.com/syntax-tree/unist-util-select)\n    — select nodes with CSS-like selectors\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`syntax-tree/.github`][health] for\nways to 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, organization, 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/syntax-tree/unist-util-find-all-after/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-find-all-after/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-find-all-after.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-find-all-after\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-find-all-after.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-find-all-after\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=unist-util-find-all-after\n\n[size]: https://bundlejs.com/?q=unist-util-find-all-after\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/syntax-tree/unist/discussions\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[typescript]: https://www.typescriptlang.org\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[health]: https://github.com/syntax-tree/.github\n\n[contributing]: https://github.com/syntax-tree/.github/blob/main/contributing.md\n\n[support]: https://github.com/syntax-tree/.github/blob/main/support.md\n\n[coc]: https://github.com/syntax-tree/.github/blob/main/code-of-conduct.md\n\n[unist]: https://github.com/syntax-tree/unist\n\n[node]: https://github.com/syntax-tree/unist#node\n\n[test]: https://github.com/syntax-tree/unist-util-is#test\n\n[api-find-all-after]: #findallafterparent-childindex-test\n","publish_time":1604246030567,"_cnpm_publish_time":1604246030567,"dist-tags":{"latest":"5.0.0"}}