{"_id":"unist-util-remove","_rev":"3275438","name":"unist-util-remove","description":"unist utility to remove nodes from a tree","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T10:23:52.000Z","created":"2016-01-05T23:14:13.445Z","4.0.0":"2023-07-07T13:59:04.578Z","3.1.1":"2023-01-23T17:47:10.397Z","3.1.0":"2021-07-30T08:42:27.326Z","3.0.0":"2021-04-19T08:57:32.264Z","2.1.0":"2021-04-02T09:54:38.035Z","2.0.1":"2020-11-01T11:30:04.815Z","2.0.0":"2020-02-10T16:35:35.125Z","1.0.3":"2019-05-31T07:36:40.274Z","1.0.2":"2019-05-21T10:56:58.559Z","1.0.1":"2018-06-04T11:35:34.492Z","1.0.0":"2017-05-16T19:39:35.296Z","0.2.1":"2016-01-23T17:37:09.274Z","0.2.0":"2016-01-13T23:33:08.481Z","0.1.0":"2016-01-05T23:14:13.445Z"},"users":{},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"versions":{"4.0.0":{"name":"unist-util-remove","version":"4.0.0","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/unist":"^3.0.0","unist-util-is":"^6.0.0","unist-util-visit-parents":"^6.0.0"},"devDependencies":{"@types/mdast":"^4.0.0","@types/node":"^20.0.0","c8":"^8.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","unist-builder":"^4.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true},"gitHead":"3d26ef7b59218850649e0275c6c7fae92a214d74","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@4.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"shasum":"94b7d6bbd24e42d2f841e947ed087be5c82b222e","size":4827,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_4.0.0_1688738344411_0.8982733717944613"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-07T13:59:04.578Z","publish_time":1688738344578,"_source_registry_name":"default","_cnpm_publish_time":1688738344578},"3.1.1":{"name":"unist-util-remove","version":"3.1.1","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","unist-util-is":"^5.0.0","unist-util-visit-parents":"^5.0.0"},"devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-builder":"^3.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"02fad8344974f34224dde6c7c2f876a76d611ba5","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@3.1.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"8bfa181aff916bd32a4ed30b3ed76d0c21c077df","size":4944,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-3.1.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_3.1.1_1674496030262_0.0167068817120557"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-23T17:47:10.397Z","publish_time":1674496030397,"_cnpm_publish_time":1674496030397},"3.1.0":{"name":"unist-util-remove","version":"3.1.0","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","unist-util-is":"^5.0.0","unist-util-visit-parents":"^5.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-builder":"^3.0.0","xo":"^0.42.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test-types":"dtslint types","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"1d99d6357a8a5f57cb166de5673685386e0fd0a5","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@3.1.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"8042577e151dac989b7517976bfe4bac58f76ccd","size":4509,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-3.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_3.1.0_1627634547213_0.6081766788225076"},"_hasShrinkwrap":false,"publish_time":1627634547326,"_cnpm_publish_time":1627634547326},"3.0.0":{"name":"unist-util-remove","version":"3.0.0","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","unist-util-is":"^5.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","unist-builder":"^3.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test-types":"dtslint types","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"import/no-mutable-exports":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"78c2d5f3bde6642a23d45620d6264391fe8d1c57","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@3.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.9.0","dist":{"shasum":"1fe0dd7ec2dd5cd71ccd1cefa90e234a4624b10a","size":4298,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_3.0.0_1618822652136_0.18627234611122168"},"_hasShrinkwrap":false,"publish_time":1618822652264,"_cnpm_publish_time":1618822652264},"2.1.0":{"name":"unist-util-remove","version":"2.1.0","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"types":"types/index.d.ts","dependencies":{"unist-util-is":"^4.0.0"},"devDependencies":{"dtslint":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","unist-builder":"^2.0.0","xo":"^0.38.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && 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"}],"no-eq-null":"off","unicorn/explicit-length-check":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"798b1052f4c9a75d621d0bad3e68dc9a549ac793","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@2.1.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"shasum":"b0b4738aa7ee445c402fda9328d604a02d010588","size":3815,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-2.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_2.1.0_1617357277889_0.6974744132633306"},"_hasShrinkwrap":false,"publish_time":1617357278035,"_cnpm_publish_time":1617357278035},"2.0.1":{"name":"unist-util-remove","version":"2.0.1","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"unist-util-is":"^4.0.0"},"devDependencies":{"nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","unist-builder":"^2.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"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"}],"no-eq-null":"off","unicorn/explicit-length-check":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"52a08b7b8cf80c21df4dd54af7474ce6cc8223b8","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@2.0.1","_nodeVersion":"14.13.1","_npmVersion":"6.14.8","dist":{"shasum":"fa13c424ff8e964f3aa20d1098b9a690c6bfaa39","size":3457,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-2.0.1.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-remove_2.0.1_1604230204706_0.5577837699608821"},"_hasShrinkwrap":false,"publish_time":1604230204815,"_cnpm_publish_time":1604230204815},"2.0.0":{"name":"unist-util-remove","version":"2.0.0","description":"unist utility to remove nodes from a tree","license":"MIT","keywords":["unist","unist-util","util","utility","ast","tree","node","cascade","delete","mutable","remove","squeeze","strip"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"unist-util-is":"^4.0.0"},"devDependencies":{"nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","unist-builder":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"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},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"113ec760f6ff7dfe9abf2b897393e1fce33d880d","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@2.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.13.7","dist":{"shasum":"32c2ad5578802f2ca62ab808173d505b2c898488","size":3459,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-2.0.0.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-remove_2.0.0_1581352535016_0.16697987154722393"},"_hasShrinkwrap":false,"publish_time":1581352535125,"_cnpm_publish_time":1581352535125},"1.0.3":{"name":"unist-util-remove","version":"1.0.3","description":"Remove nodes from Unist tree","license":"MIT","keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"unist-util-is":"^3.0.0"},"devDependencies":{"nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","unist-builder":"^1.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"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},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"8404571e96348804e45bd73f36f71028d08425a8","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@1.0.3","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"58ec193dfa84b52d5a055ffbc58e5444eb8031a3","size":3464,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-1.0.3.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-remove_1.0.3_1559288200172_0.16736825309948222"},"_hasShrinkwrap":false,"publish_time":1559288200274,"_cnpm_publish_time":1559288200274},"1.0.2":{"name":"unist-util-remove","version":"1.0.2","description":"Remove nodes from Unist tree","license":"MIT","keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"unist-util-is":"^2.0.0"},"devDependencies":{"nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","unist-builder":"^1.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"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},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"b59129f3e5316ca1a77ab2b0a529fa1a2f630cd2","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@1.0.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"fd33d34cf659ebc9a4473cf9e56635c6e74b0f6d","size":3322,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-1.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-remove_1.0.2_1558436218397_0.9420731007445058"},"_hasShrinkwrap":false,"publish_time":1558436218559,"_cnpm_publish_time":1558436218559},"1.0.1":{"name":"unist-util-remove","version":"1.0.1","description":"Remove nodes from Unist tree","license":"MIT","keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-remove.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"unist-util-is":"^2.0.0"},"devDependencies":{"nyc":"^12.0.1","prettier":"^1.13.3","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","unist-builder":"^1.0.0","xo":"^0.21.1"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"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":{"guard-for-in":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"afd429ab6d2c1159423b8aeb5f8ccb0411c793ef","homepage":"https://github.com/syntax-tree/unist-util-remove#readme","_id":"unist-util-remove@1.0.1","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"3e967d2aeb3ee9e7f0ee8354172986fba7ff33a5","size":2908,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-1.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-remove_1.0.1_1528112134409_0.4101612155715346"},"_hasShrinkwrap":false,"publish_time":1528112134492,"_cnpm_publish_time":1528112134492},"1.0.0":{"name":"unist-util-remove","version":"1.0.0","description":"Remove nodes from Unist tree","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js","cov":"nyc --reporter lcov tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-remove","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-remove.git"},"bugs":{"url":"https://github.com/eush77/unist-util-remove/issues"},"keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"dependencies":{"unist-util-is":"^2.0.0"},"devDependencies":{"tape":"^4.4.0","unist-builder":"^1.0.0"},"gitHead":"76c586474eb4af49f865c02132f39f54eeeb39f8","_id":"unist-util-remove@1.0.0","_shasum":"d600b0984e89ab069e49b2203dd9821681958c9d","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"d600b0984e89ab069e49b2203dd9821681958c9d","size":2449,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/unist-util-remove-1.0.0.tgz_1494963573807_0.2812025765888393"},"directories":{},"publish_time":1494963575296,"_hasShrinkwrap":false,"_cnpm_publish_time":1494963575296},"0.2.1":{"name":"unist-util-remove","version":"0.2.1","description":"Remove nodes from Unist tree","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-remove","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-remove.git"},"bugs":{"url":"https://github.com/eush77/unist-util-remove/issues"},"keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"dependencies":{"unist-util-is":"^1.0.0"},"devDependencies":{"tape":"^4.4.0","unist-builder":"^1.0.0"},"gitHead":"02959706c7247f810e8a676828306c912d64ea29","_id":"unist-util-remove@0.2.1","_shasum":"a40414361db3c19ac3da021f111e05d299db75d0","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"a40414361db3c19ac3da021f111e05d299db75d0","size":2396,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-0.2.1.tgz"},"directories":{},"publish_time":1453570629274,"_cnpm_publish_time":1453570629274,"_hasShrinkwrap":false},"0.2.0":{"name":"unist-util-remove","version":"0.2.0","description":"Remove nodes from Unist tree","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-remove","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-remove.git"},"bugs":{"url":"https://github.com/eush77/unist-util-remove/issues"},"keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"dependencies":{"unist-util-is":"^1.0.0"},"devDependencies":{"tape":"^4.4.0","unist-builder":"^1.0.0"},"gitHead":"47b0a0c2ff4a417efb0000d9cc64dd85bfcb858d","_id":"unist-util-remove@0.2.0","_shasum":"abf02dbc8ad3f7236bf7b42d7c74171ab6baf270","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"abf02dbc8ad3f7236bf7b42d7c74171ab6baf270","size":2389,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-0.2.0.tgz"},"directories":{},"publish_time":1452727988481,"_cnpm_publish_time":1452727988481,"_hasShrinkwrap":false},"0.1.0":{"name":"unist-util-remove","version":"0.1.0","description":"Remove nodes from Unist tree","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-remove","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-remove.git"},"bugs":{"url":"https://github.com/eush77/unist-util-remove/issues"},"keywords":["ast","cascade","delete","mutable","node","remove","squeeze","strip","tree","unist","util"],"dependencies":{},"devDependencies":{"tape":"^4.4.0","unist-builder":"^1.0.0"},"gitHead":"ee23d58753dc8c25dff76de955bc633abf32cf6e","_id":"unist-util-remove@0.1.0","_shasum":"d365e9ab5eca957983700090be3e2fd88c5ff455","_from":".","_npmVersion":"3.3.9","_nodeVersion":"5.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"dist":{"shasum":"d365e9ab5eca957983700090be3e2fd88c5ff455","size":2199,"noattachment":false,"key":"/unist-util-remove/-/unist-util-remove-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/unist-util-remove/download/unist-util-remove-0.1.0.tgz"},"directories":{},"publish_time":1452035653445,"_cnpm_publish_time":1452035653445,"_hasShrinkwrap":false}},"readme":"# unist-util-remove\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 remove all nodes that pass a test from the tree.\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    *   [`remove(tree[, options], test)`](#removetree-options-test)\n    *   [`Options`](#options)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis is a small utility that helps you clean a tree by removing some stuff.\n\n## When should I use this?\n\nYou can use this utility to remove things from a tree.\nThis utility is very similar to [`unist-util-filter`][unist-util-filter], which\ncreates a new tree.\nModifying a tree like this utility `unist-util-remove` does is much faster on\nlarger documents though.\n\nYou can also walk the tree with [`unist-util-visit`][unist-util-visit] to remove\nnodes.\nTo create trees, use [`unist-builder`][unist-builder].\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-remove\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {remove} from 'https://esm.sh/unist-util-remove@4'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {remove} from 'https://esm.sh/unist-util-remove@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {u} from 'unist-builder'\nimport {remove} from 'unist-util-remove'\n\nconst tree = u('root', [\n  u('leaf', '1'),\n  u('parent', [\n    u('leaf', '2'),\n    u('parent', [u('leaf', '3'), u('other', '4')]),\n    u('parent', [u('leaf', '5')])\n  ]),\n  u('leaf', '6')\n])\n\n// Remove all nodes of type `leaf`.\nremove(tree, 'leaf')\n\nconsole.dir(tree, {depth: undefined})\n```\n\nYields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {\n      type: 'parent',\n      children: [{type: 'parent', children: [{type: 'other', value: '4'}]}]\n    }\n  ]\n}\n```\n\n> ???? **Note**: the parent of leaf `5` is also removed, `options.cascade` can\n> change that.\n\n## API\n\nThis package exports the identifier [`remove`][api-remove].\nThere is no default export.\n\n### `remove(tree[, options], test)`\n\nChange the given `tree` by removing all nodes that pass `test`.\n\n`tree` itself is never tested.\nThe tree is walked in *[preorder][]* (NLR), visiting the node itself, then its\nhead, etc.\n\n###### Parameters\n\n*   `tree` ([`Node`][node])\n    — tree to change\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n*   `test` ([`Test`][test], optional)\n    — `unist-util-is` compatible test\n\n###### Returns\n\nNothing (`undefined`).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n*   `cascade` (`boolean`, default: `true`)\n    — whether to drop parent nodes if they had children, but all their children\n    were filtered out\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\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-remove@^4`,\ncompatible with Node.js 16.\n\n## Related\n\n*   [`unist-util-filter`](https://github.com/syntax-tree/unist-util-filter)\n    — create a new tree with all nodes that pass the given function\n*   [`unist-util-flatmap`](https://gitlab.com/staltz/unist-util-flatmap)\n    — create a new tree by expanding a node into many\n*   [`unist-util-map`](https://github.com/syntax-tree/unist-util-map)\n    — create a new tree by mapping nodes\n*   [`unist-util-select`](https://github.com/syntax-tree/unist-util-select)\n    — select nodes with CSS-like selectors\n*   [`unist-util-visit`](https://github.com/syntax-tree/unist-util-visit)\n    — walk the tree\n*   [`unist-builder`](https://github.com/syntax-tree/unist-builder)\n    — create trees\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, organisation, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © Eugene Sharygin\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/syntax-tree/unist-util-remove/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-remove/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-remove.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-remove\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-remove.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-remove\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-remove\n\n[size]: https://bundlejs.com/?q=unist-util-remove\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[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[preorder]: https://github.com/syntax-tree/unist#preorder\n\n[test]: https://github.com/syntax-tree/unist-util-is#test\n\n[unist-util-filter]: https://github.com/syntax-tree/unist-util-filter\n\n[unist-util-visit]: https://github.com/syntax-tree/unist-util-visit\n\n[unist-builder]: https://github.com/syntax-tree/unist-builder\n\n[api-remove]: #removetree-options-test\n\n[api-options]: #options\n","_attachments":{},"homepage":"https://github.com/syntax-tree/unist-util-remove#readme","bugs":{"url":"https://github.com/syntax-tree/unist-util-remove/issues"},"license":"MIT"}