{"_id":"unist-util-find","_rev":"14-8906b57a293fb687dea45dadebc27715","name":"unist-util-find","description":"unist utility to find a node","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.1":{"name":"unist-util-find","version":"1.0.1","keywords":["unist","remark","retext","rehype","hast","mdast","nlcst","find","search"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@1.0.1","maintainers":[{"name":"blahah","email":"rds45@cam.ac.uk"}],"homepage":"https://github.com/blahah/unist-util-find#readme","bugs":{"url":"https://github.com/blahah/unist-util-find/issues"},"dist":{"shasum":"1062bbb6928c7a97c6adc89b53745d4c46c222a2","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-1.0.1.tgz","integrity":"sha512-rhh6ITnBZy6vGl2dTO1iXHW/YSrC43AbfqBmsdTKw/LFrfv5kRww7KRIXTPD3lKbbDArp1MUVDuAWu2Q8Y6s4g==","signatures":[{"sig":"MEUCIQChhxFOfzcUVqNfYnBiRk0zCw50L1idCEyjuh1TX34u1AIgBTDosp91N/ENt1ZvnqSgVGjYHKyIXrnUvzzwUKw4dWo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1062bbb6928c7a97c6adc89b53745d4c46c222a2","gitHead":"42bfcad402ba9ecaf1ac0f37db79b884800aea57","scripts":{"test":"standard && node test.js"},"_npmUser":{"name":"blahah","email":"rds45@cam.ac.uk"},"repository":{"url":"git+https://github.com/blahah/unist-util-find.git","type":"git"},"_npmVersion":"3.8.9","description":"Unist node finder utility. Useful for working with remark, rehype and retext.","directories":{},"_nodeVersion":"6.2.0","dependencies":{"remark":"^5.0.1","lodash.iteratee":"^4.5.0","unist-util-visit":"^1.1.0"},"devDependencies":{"tape":"^4.6.0","standard":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find-1.0.1.tgz_1467298322288_0.8231010283343494","host":"packages-16-east.internal.npmjs.com"}},"1.0.2":{"name":"unist-util-find","version":"1.0.2","keywords":["unist","remark","retext","rehype","hast","mdast","nlcst","find","search"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@1.0.2","maintainers":[{"name":"blahah","email":"rik@fathomlabs.io"}],"homepage":"https://github.com/blahah/unist-util-find#readme","bugs":{"url":"https://github.com/blahah/unist-util-find/issues"},"dist":{"shasum":"4d5b01a69fca2a382ad4f55f9865e402129ecf56","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-1.0.2.tgz","fileCount":7,"integrity":"sha512-ft06UDYzqi9o9RmGP0sZWI/zvLLQiBW2/MD+rW6mDqbOWDcmknGX9orQPspfuGRYWr8eSJAmfsBcvOpfGRJseA==","signatures":[{"sig":"MEUCIQD7ZRGU3aMKRo+cFMMiJneMp6FdHdYn+DDrHAE6MVYdlQIgf+o1nxBh7y4yWLZwkDi1CWc0E1ukiStHQKoqd8cz+j0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6451,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfqtVjCRA9TVsSAnZWagAAHT8P+wY0dU3ODZEXFEKfze1X\n2EIksPQcpDVXWyc2Yfbp39KxmCMpuS8JIsxn16fS/zm2AK2ysjjpn40PiZkk\n3nspKAs28BiaWEmCIwN79+Ljt3j9wUfZt1gKpxzTETahlZBhyA3RGyIkS4AA\nJibauGtrV6Eu9e9VZTPUNZu3Xred9uFSZVP2Tc+wbBMjuCZCrarfCn4rarKo\n+MBl4aLt2cmQ60VOnJD4vWGI3S4uB95OP3CNe3vjPcl9hUhAc8eVDmSdEn9g\nPiIl5SqdLJ+k7CCuK6AxMHE3sb2w0RPuzClhDL6zOYrym4f0Zre56iT9uUbH\nqyZNT0CePrTZh3BGDLu4fg/rS8NEmCuUTDSUNlAylzmXYkzHxnZ1RgEd932t\n7gLxkzinpi/y7wqVSYrVOQ1MFiLBgJKDorWGrs4cRLNFuwCYGPjQlxHIwXSC\nHCPC9oY6DbBH5h2GoNR0nfWPQbJ8o7oNleSITDRGDX5fHiVhf2VUkr8ubXnP\nzwezl+3WwbYUO+RsWjqu+nEcIX8F5Gf1ebCZJrJOh+8c6bqWlT1ZbP1OOQFc\nWM69KhrGxSLc2U1V5AT7KTP3pS+tux+Ivl2eYc7k5Xn2g4SCqBvrdorVuU4f\n3e4k3tHR+/IU+drDeLr+J+kUVoEcvQdVDZMPbdPhB8eo5QK7/GI/ZJe6OAwd\npinM\r\n=lM6h\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"1200bf5c26af3dc2cf95b7534ed500220ce30959","scripts":{"test":"standard && node test.js"},"_npmUser":{"name":"blahah","email":"rik@fathomlabs.io"},"repository":{"url":"git+https://github.com/blahah/unist-util-find.git","type":"git"},"_npmVersion":"6.14.6","description":"Unist node finder utility. Useful for working with remark, rehype and retext.","directories":{},"_nodeVersion":"12.18.4","dependencies":{"lodash.iteratee":"^4.5.0","unist-util-visit":"^1.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.6.0","remark":"^7.0.0","standard":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find_1.0.2_1605031266880_0.6674265148628971","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"unist-util-find","version":"1.0.3","keywords":["unist","remark","retext","rehype","hast","mdast","nlcst","find","search"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@1.0.3","maintainers":[{"name":"blahah","email":"rik@fathomlabs.io"}],"homepage":"https://github.com/blahah/unist-util-find#readme","bugs":{"url":"https://github.com/blahah/unist-util-find/issues"},"dist":{"shasum":"9bae47067d130e58011924b9d5c0d7bbddbf8388","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-1.0.3.tgz","fileCount":5,"integrity":"sha512-/EU5aTJJfldLGm0A4hUV4FTShJalFbeKIdUlJi6aoz+YchHpYA1XKGOU0OtUkIjsl8i6bekB3LG1HMVeMbIAdQ==","signatures":[{"sig":"MEUCIDq+6coalouCqxZTa/CLYFA75kkDAoRa3sRTTgN59OBbAiEAxJ4qkCG8aPdNAK7FsfSxqD6LA4fyheNlA4boBeVxr4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6783},"main":"index.js","type":"module","types":"index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"gitHead":"559fefa56ecc820f227abc9a45ef77ef3136ffdf","scripts":{"test":"standard && node test.js","build":"tsc","prepare":"npm run build","release":"release-it"},"_npmUser":{"name":"blahah","email":"rik@fathomlabs.io"},"repository":{"url":"git+https://github.com/blahah/unist-util-find.git","type":"git"},"_npmVersion":"9.5.1","description":"Unist node finder utility. Useful for working with remark, rehype and retext.","directories":{},"sideEffects":false,"_nodeVersion":"18.16.0","dependencies":{"lodash.iteratee":"^4.7.0","unist-util-visit":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.3.1","remark":"^14.0.1","standard":"^16.0.4","release-it":"^15.11.0","typescript":"^4.6.4","@types/unist":"^2.0.6","@types/lodash.iteratee":"^4.7.7"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find_1.0.3_1686780086008_0.5715339650164879","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"unist-util-find","version":"1.0.4","keywords":["unist","remark","retext","rehype","hast","mdast","nlcst","find","search"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@1.0.4","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"blahah","email":"rik@fathomlabs.io"}],"homepage":"https://github.com/blahah/unist-util-find#readme","bugs":{"url":"https://github.com/blahah/unist-util-find/issues"},"dist":{"shasum":"752e2c6fabf9d57e2c08e03d2f54aaee8c227ef3","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-1.0.4.tgz","fileCount":5,"integrity":"sha512-T5vI7IkhroDj7KxAIy057VbIeGnCXfso4d4GoUsjbAmDLQUkzAeszlBtzx1+KHgdsYYBygaqUBvrbYCfePedZw==","signatures":[{"sig":"MEUCIQClhzZwStEJByfebACQSs1eRwVQEI9hmEldDCw6WdWmCAIgV5bGvCrE5GUpGkb7x5jSrwhiz/dzwWt2+g9kSnemSDA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6279},"main":"index.js","type":"commonjs","types":"index.d.ts","gitHead":"db76ae9402641b5d9c304b1ab12907ee57e406b6","scripts":{"test":"standard && node test.js","build":"tsc","prepack":"npm run build"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"repository":{"url":"git+https://github.com/blahah/unist-util-find.git","type":"git"},"_npmVersion":"8.19.4","description":"Unist node finder utility. Useful for working with remark, rehype and retext.","directories":{},"sideEffects":false,"_nodeVersion":"16.20.1","dependencies":{"lodash.iteratee":"^4.7.0","unist-util-visit":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^5.3.1","remark":"^13.0.0","standard":"^8.0.0","typescript":"^4.6.4","@types/unist":"^2.0.6","@types/lodash.iteratee":"^4.7.7"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find_1.0.4_1688135031406_0.857977989324689","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"unist-util-find","version":"2.0.0","keywords":["find","hast","mdast","nlcst","node","rehype","remark","retext","search","unist","unist-util","util","utility"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@2.0.0","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"blahah","email":"rik@fathomlabs.io"}],"contributors":[{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/syntax-tree/unist-util-find#readme","bugs":{"url":"https://github.com/syntax-tree/unist-util-find/issues"},"xo":{"prettier":true},"dist":{"shasum":"143403ad4b221a2a35b324760e858ad5c54fc675","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-2.0.0.tgz","fileCount":5,"integrity":"sha512-I4NH8M2r7B9pGNXl41fftwCCi/WhG50RUdZDYcpEmiQEgHUYtfWpcCX4/R6s4XtK0ztxUSwC6u9sztlnDQAoaA==","signatures":[{"sig":"MEUCIQDEiUA0nB6C9KXAKweoJc8t5GOP8p/i+XwUmE6TVFpl9gIgFQraYjh8UnGXSEsUKX3VkJH8Eh0/w/dQJsgsj11eN58=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11865},"type":"module","types":"./index.d.ts","exports":"./index.js","funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"gitHead":"bd42f831d33d9e5d18e34eec119adae2760d2365","scripts":{"test":"npm run build && npm run format && npm run test-coverage","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","prepack":"npm run build && npm run format","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --reporter lcov npm run test-api"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"prettier":{"semi":false,"useTabs":false,"tabWidth":2,"singleQuote":true,"trailingComma":"none","bracketSpacing":false},"repository":{"url":"git+https://github.com/syntax-tree/unist-util-find.git","type":"git"},"_npmVersion":"9.6.4","description":"unist utility to find a node","directories":{},"sideEffects":false,"_nodeVersion":"20.0.0","dependencies":{"@types/unist":"^2.0.0","lodash.iteratee":"^4.0.0","unist-util-visit":"^4.0.0"},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"detail":true,"strict":true,"atLeast":100,"ignoreCatch":true},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","xo":"^0.54.0","tape":"^5.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","typescript":"^5.0.0","@types/tape":"^5.0.0","type-coverage":"^2.0.0","remark-preset-wooorm":"^9.0.0","@types/lodash.iteratee":"^4.0.0","mdast-util-from-markdown":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find_2.0.0_1688201361307_0.4601989453523174","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"unist-util-find","version":"3.0.0","keywords":["find","hast","mdast","nlcst","node","rehype","remark","retext","search","unist","unist-util","util","utility"],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"license":"MIT","_id":"unist-util-find@3.0.0","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"blahah","email":"rik@fathomlabs.io"}],"contributors":[{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}],"homepage":"https://github.com/syntax-tree/unist-util-find#readme","bugs":{"url":"https://github.com/syntax-tree/unist-util-find/issues"},"xo":{"prettier":true},"dist":{"shasum":"27af1396cf902b9c05ca609536d7e66ff6af17c7","tarball":"https://registry.npmjs.org/unist-util-find/-/unist-util-find-3.0.0.tgz","fileCount":5,"integrity":"sha512-T7ZqS7immLjYyC4FCp2hDo3ksZ1v+qcbb+e5+iWxc2jONgHOLXPCpms1L8VV4hVxCXgWTxmBHDztuEZFVwC+Gg==","signatures":[{"sig":"MEUCICZ6gXtcJesSAVbk58mdb6dzsleGyWy6d4/G39xeoH9pAiEA2d/Or1m+kNtEKnaVV4GCGuIezB5iDsjkFGB8enxLYtc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11822},"type":"module","types":"./index.d.ts","exports":"./index.js","funding":{"url":"https://opencollective.com/unified","type":"opencollective"},"gitHead":"8b53c83d2bc966de9b2ef0d37b2710370ebe2299","scripts":{"test":"npm run build && npm run format && npm run test-coverage","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","prepack":"npm run build && npm run format","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --reporter lcov npm run test-api"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"prettier":{"semi":false,"useTabs":false,"tabWidth":2,"singleQuote":true,"trailingComma":"none","bracketSpacing":false},"repository":{"url":"git+https://github.com/syntax-tree/unist-util-find.git","type":"git"},"_npmVersion":"9.7.2","description":"unist utility to find a node","directories":{},"sideEffects":false,"_nodeVersion":"20.0.0","dependencies":{"@types/unist":"^3.0.0","lodash.iteratee":"^4.0.0","unist-util-visit":"^5.0.0"},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"detail":true,"strict":true,"atLeast":100,"ignoreCatch":true},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","xo":"^0.55.0","prettier":"^3.0.0","remark-cli":"^11.0.0","typescript":"^5.0.0","@types/node":"^20.0.0","type-coverage":"^2.0.0","remark-preset-wooorm":"^9.0.0","@types/lodash.iteratee":"^4.0.0","mdast-util-from-markdown":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/unist-util-find_3.0.0_1691584783035_0.8444934382970268","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-06-30T14:52:04.132Z","modified":"2024-06-26T08:17:50.210Z","1.0.1":"2016-06-30T14:52:04.132Z","1.0.2":"2020-11-10T18:01:07.007Z","1.0.3":"2023-06-14T22:01:26.142Z","1.0.4":"2023-06-30T14:23:51.591Z","2.0.0":"2023-07-01T08:49:21.459Z","3.0.0":"2023-08-09T12:39:43.263Z"},"maintainers":[{"email":"tituswormer@gmail.com","name":"wooorm"},{"email":"keith@mcknig.ht","name":"kmck"}],"author":{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},"repository":{"url":"git+https://github.com/syntax-tree/unist-util-find.git","type":"git"},"keywords":["find","hast","mdast","nlcst","node","rehype","remark","retext","search","unist","unist-util","util","utility"],"license":"MIT","homepage":"https://github.com/syntax-tree/unist-util-find#readme","bugs":{"url":"https://github.com/syntax-tree/unist-util-find/issues"},"readme":"# unist-util-find\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[unist][] utility to find a 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    *   [`find(tree, condition)`](#findtree-condition)\n    *   [`TestFn`](#testfn)\n    *   [`TestObj`](#testobj)\n    *   [`TestStr`](#teststr)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a utility that takes any [unist][] (whether mdast, hast, etc)\nnode and returns the first node that matches a given condition.\n\n## When should I use this?\n\nThis utility is the simplest way to find a single node in a tree.\n\nFor much more powerful tree walking, see [`unist-util-visit`][visit].\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\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {find} from 'https://esm.sh/unist-util-find@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {find} from 'https://esm.sh/unist-util-find@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {fromMarkdown} from 'mdast-util-from-markdown'\nimport {find} from 'unist-util-find'\n\nconst tree = fromMarkdown('Some _emphasis_, **strongness**, and `code`.')\n\n// String condition:\nconsole.log(find(tree, 'value'))\n\n// Object condition:\nconsole.log(find(tree, {value: 'emphasis'}))\n\n// Function condition:\nconsole.log(\n  find(tree, function (node) {\n    return node.type === 'inlineCode'\n  })\n)\n```\n\nYields:\n\n```js\n// string condition: 'value'\n{\n  type: 'text',\n  value: 'Some ',\n  position: {\n    start: { line: 1, column: 1, offset: 0 },\n    end: { line: 1, column: 6, offset: 5 }\n  }\n}\n\n// object condition: { value: 'emphasis' }\n{\n  type: 'text',\n  value: 'emphasis',\n  position: {\n    start: { line: 1, column: 7, offset: 6 },\n    end: { line: 1, column: 15, offset: 14 }\n  }\n}\n\n// function condition: function (node) { return node.type === 'inlineCode' }\n{\n  type: 'inlineCode',\n  value: 'code',\n  position: {\n    start: { line: 1, column: 38, offset: 37 },\n    end: { line: 1, column: 44, offset: 43 }\n  }\n}\n```\n\n## API\n\nThis package exports the identifier [`find`][api-find].\nThere is no default export.\n\n### `find(tree, condition)`\n\nFind a node in `tree` matching `condition`.\n\n###### Parameters\n\n*   `tree` ([`Node`][node])\n    — tree to search in\n*   `condition` ([`TestFn`][api-test-fn], [`TestObj`][api-test-obj], or\n    [`TestStr`][api-test-str])\n    — condition used to test each node\n\n###### Returns\n\nThe first node ([`Node`][node]) that matches condition, or `undefined` if no\nnode matches\n\n### `TestFn`\n\nFind the first node for which function returns `true` when passed node as\nargument (TypeScript type).\n\n###### Parameters\n\n*   `node` ([`Node`][node])\n    — node to check\n\n###### Returns\n\nWhether `node` matches your condition (`boolean`).\n\n### `TestObj`\n\nFind the first node that has matching values for all properties of object\n(TypeScript type).\n\n###### Type\n\n```ts\ntype TestObj = Record<string, unknown>;\n```\n\n### `TestStr`\n\nFind the first node with a truthy property matching `string` (TypeScript type).\n\n###### Type\n\n```ts\ntype TestStr = string;\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`TestFn`][api-test-fn],\n[`TestObj`][api-test-obj], and [`TestStr`][api-test-str].\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, `unist-util-find@^3`,\ncompatible with Node.js 16.\n\n## Security\n\nThis project is safe.\n\n## Related\n\n*   [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit)\n    — visit nodes\n\n## Contribute\n\nSee [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get\nstarted.\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] © [Richard Smith-Unna][author]\n\n<!-- Definition -->\n\n[build-badge]: https://github.com/syntax-tree/unist-util-find/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-find/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-find.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-find\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-find.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-find\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\n\n[size]: https://bundlejs.com/?q=unist-util-find\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[license]: license\n\n[author]: https://twitter.com/blahah404\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\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[visit]: https://github.com/syntax-tree/unist-util-visit\n\n[node]: https://github.com/syntax-tree/unist#node\n\n[api-find]: #findtree-condition\n\n[api-test-fn]: #testfn\n\n[api-test-obj]: #testobj\n\n[api-test-str]: #teststr\n","readmeFilename":"readme.md","users":{"mrzmmr":true,"flumpus-dev":true},"contributors":[{"name":"Richard Smith-Unna","email":"rik@fathomlabs.io"},{"url":"https://wooorm.com","name":"Titus Wormer","email":"tituswormer@gmail.com"}]}