{"_id":"unist-util-parents","_rev":"18-eab95f0f35387ee00874a699a839ecbd","name":"unist-util-parents","description":"unist utility to add references to parents on nodes in a tree","dist-tags":{"latest":"3.0.0"},"versions":{"0.1.0":{"name":"unist-util-parents","version":"0.1.0","description":"Add a parent reference for each AST node","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js","example":"node example"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-parents","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-parents.git"},"bugs":{"url":"https://github.com/eush77/unist-util-parents/issues"},"keywords":["unist","mdast","retext","util","parent","parents","node","nodes","ast","reference","walk"],"dependencies":{},"devDependencies":{"clone":"^1.0.2","tape":"^4.0.2"},"gitHead":"d5652afe330d03c65258ca2aa39720c98eae738f","_id":"unist-util-parents@0.1.0","_shasum":"f8dec7a65ccc5e599f89259a7738fccccce75004","_from":".","_npmVersion":"3.3.1","_nodeVersion":"3.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"f8dec7a65ccc5e599f89259a7738fccccce75004","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-0.1.0.tgz","integrity":"sha512-l4FQpiyrNCU1NlDgigJ73KkOkkXsQ/3RvA2AlFaU9sK/U3bnaVCZDMmsWoVM8aG/VmOGV0DW2myWsWVAjhNSmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl3zwIZJFNGBufsbi0HHjAGK/VBOc4OOmxMV9yw/5KFgIgCofpyV0oF+WgLqI9tPa/LhMYgizONtq6qcyaOjBOYac="}]},"directories":{}},"0.1.1":{"name":"unist-util-parents","version":"0.1.1","description":"Add a parent reference for each AST node","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js","example":"node example"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-parents","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-parents.git"},"bugs":{"url":"https://github.com/eush77/unist-util-parents/issues"},"keywords":["unist","mdast","retext","util","parent","parents","node","nodes","ast","reference","walk"],"dependencies":{"es6-map":"^0.1.1"},"devDependencies":{"clone":"^1.0.2","tape":"^4.0.2"},"gitHead":"41d951fb97399ec12bfabe3d79d50c6db361cfff","_id":"unist-util-parents@0.1.1","_shasum":"8f44d25cc448a5f934ebff64364fec7b13de07f1","_from":".","_npmVersion":"3.3.1","_nodeVersion":"3.0.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"8f44d25cc448a5f934ebff64364fec7b13de07f1","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-0.1.1.tgz","integrity":"sha512-+BAA0MhrU/AL+7CMj3DXhzDlxKFa89pEG73aJ5psbowohd7H8kOLmoEvDfV6cKtChbFYHteLcHuKOpScGndqtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfo1UnxYbQpxYLkFe0x3DSVgbJgf1/QlhjPCn19XQFdwIhAN+L4Lw4CLCXGSBEN9PI+cUPGkeVW8OeDlIlZHMfwS+C"}]},"directories":{}},"0.1.2":{"name":"unist-util-parents","version":"0.1.2","description":"Add a parent reference for each AST node","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js","example":"node example"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-parents","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-parents.git"},"bugs":{"url":"https://github.com/eush77/unist-util-parents/issues"},"keywords":["unist","mdast","retext","util","parent","parents","node","nodes","ast","reference","walk"],"dependencies":{"es6-weak-map":"^2.0.1"},"devDependencies":{"clone":"^1.0.2","tape":"^4.0.2"},"gitHead":"683ea5c0f6d5b4b5478800b3ab477bab246afd9d","_id":"unist-util-parents@0.1.2","_shasum":"de012e1e0f0bd814725d5158d0933c9c66262a9a","_from":".","_npmVersion":"3.3.4","_nodeVersion":"4.1.0","_npmUser":{"name":"eush77","email":"eush77@gmail.com"},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"}],"dist":{"shasum":"de012e1e0f0bd814725d5158d0933c9c66262a9a","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-0.1.2.tgz","integrity":"sha512-NCZWLc0LPNj6939WA4/DAdidYpC6qOq8amZnHCcI+lEpGkEDoKu+g2NZuTsZoDDVcgx0xrTUNboH/fi0m7//dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC12ESkyOgCgwqDPdJ0KcgXHXGDjpvv+xglTxVyin6QUwIgeWR/6aLJBvtL8EpAiIXxeoAJWhK2Kkc5p/+PZgZ7lks="}]},"directories":{}},"1.0.0":{"name":"unist-util-parents","version":"1.0.0","description":"Add a parent reference for each AST node","author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"license":"MIT","scripts":{"test":"tape test/*.js","example":"node example"},"files":["index.js"],"homepage":"https://github.com/eush77/unist-util-parents","repository":{"type":"git","url":"git+https://github.com/eush77/unist-util-parents.git"},"bugs":{"url":"https://github.com/eush77/unist-util-parents/issues"},"keywords":["unist","remark","rehype","retext","util","parent","parents","node","nodes","ast","reference","walk"],"dependencies":{"es6-weak-map":"^2.0.1"},"devDependencies":{"clone":"^2.1.1","tape":"^4.0.2"},"gitHead":"f5f1ab3e8ea84c9db0568840e419729d162e9065","_id":"unist-util-parents@1.0.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-606ENeOBmJoEsj9WJVDP3PCsBSVH+ovBhqyUX5NnJIG2B0IuBXdg/uE5OZzPuyNKDGPdUVS2cjwEfwBc3t6XPw==","shasum":"72485d2293b929c20a1689e245d3e57fca70ee21","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW0CExfex8HPwIVkgBkIH9PL6LEiiBfQ9oA/OOdvt69QIhAMHQOM65rXc79Rm0TjFj4SohfrnVdMwWWbPEWVTHnoS5"}]},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents-1.0.0.tgz_1497294261436_0.46186389680951834"},"directories":{}},"1.0.1":{"name":"unist-util-parents","version":"1.0.1","description":"Add a parent reference for each AST node","license":"MIT","keywords":["unist","remark","rehype","retext","util","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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":{"es6-weak-map":"^2.0.1"},"devDependencies":{"clone":"^2.1.1","nyc":"^12.0.2","prettier":"^1.14.2","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.2","xo":"^0.22.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":"c1e9f95b9643c4be697edd45b40cddb2f3d6009d","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@1.0.1","_npmVersion":"6.3.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-0StvA75QtG+xxlKD/IJtEZFpKAECYQGb7yY12z6sE+pfgEU0dsRGrnMsuhM9IV8KZcNOSDnVGML/m+k3kq31SQ==","shasum":"65d78cb54dd4db003d80bc3843facb596b9a5e9e","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-1.0.1.tgz","fileCount":4,"unpackedSize":6646,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdpPSCRA9TVsSAnZWagAA8hcQAIx0at7/AQmeYcmEnMMk\nakZQ31gpbWHvI6tAu2ss8BVadditO2tNjsz/Rhi/lVxwD1MWlTQrvL/u6A6P\n8Msy6uPKL7qjihE6zOYjBRkoahpiV1eFOQ+4b7Vmp9agKiuUkjjNs3G89beW\ndx4+2n9oxbGK5BiBsymHX35d3VArbbwMMC1vic6v58rqQ60u8Gzk+NqX8v71\n8Ra+N8Ha9Ydp7w0nx5SI7d0nqmBCFW7AokyrarhUsYw15ckZNQf9xw0LkQ/b\nR93esbFgtHBghvAAEX0gpB5wp2AXXNPdXn61JnmKHMQ4ONuZQmp7UjmjcfsN\n5IMVoH6TudDJMd0HvXDwKzzy8mT9iOYRmiEWKhQHVxfHszUjW+pfLHFIGfPf\n8wBwLAr2DbGDUIOWusolIxkjoIBqeogii7Mi+0Y3v8V4sg184NK4DLi45z+K\njGI7EXbsi8+ttyvP4zKONqLvptQDLKEctrumw65BGwLhzjYi32U4KYzAqYeW\nm4BAD0goii9xm3Iic1ce6VR6mkVlkFrRsTsUiZrCAvmqdqCp2o6lip9zExOy\nN9vUF7K+pTEtLjvrqCfD6INr+YsUOyGhxCxXiPugIjCYlZktQYsA+j/tfb1u\nVTJHcGCol2hXqetQG4o6/E5wXbkBOyVK/3fCr6QH06YveItDYP1zKFNSY4F+\nAHYD\r\n=/fTV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvEL8mrc2kWW+u7tBviV04YXzd7Adv6xybmCI8r4LTWAIhAPHhoQ301Vg3rVPDpJASR+hosHyZzDa3UFgMi9tvzHt9"}]},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_1.0.1_1534497745951_0.35589908059573294"},"_hasShrinkwrap":false},"1.0.2":{"name":"unist-util-parents","version":"1.0.2","description":"Add a parent reference for each AST node","license":"MIT","keywords":["unist","remark","rehype","retext","util","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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":{"es6-weak-map":"^2.0.1"},"devDependencies":{"clone":"^2.0.0","nyc":"^14.0.0","prettier":"^1.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.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":"46d647d5f0105b7b53a56a09af1e0525d75e1bbd","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@1.0.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-GwY81F/q2KMYi+A7+A0QZCJX/GlmRfeU4fRlEmndSgLGPWLBBcR/xKb5B5irFSzzrbTK94XgBQ++s7c9/Jdoig==","shasum":"f982bf0feb4fa472d60209224bfb42f513468673","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-1.0.2.tgz","fileCount":4,"unpackedSize":7421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc4+mgCRA9TVsSAnZWagAAVRoP/1D64eQqL/sciSHs0Ph8\nWgK7PexSHFduY420nZy5EYUmlSIip7i2qjd2INEXhbea8YRpI5LeG1y59bMs\ntT9UdN+WSTpyhwBjbcv27yrfJoFDU3IiItFDbzycG1UThygm1UaugnXyyrrj\nfGbey/DxST9uFFjNDgaD/HzLtQqyYm78AVbJeQx6WipnMt9WwBPdM1uBK7NR\nOKgRCwBWLSbyYOLqBEzQM6NQloMShZd5KsciZBCSn9hzqBXQY5FktdnkxFel\nLvKUJefGeh5mGcEujxrcgDlWHT/9aLBX9iemnF2tfary+CKu5lTeI61m+df+\nLm4zD0tzyStE2NYpDsBhe2K1Yh+otsiP+uCxaoZ00pJMB7lS/YEoUdaanWC8\nsAIJSMFptfOwGA4I0GBXvQQAKG+pIXvyhXyJvFFKG7tLhk50ZQmEFqYVXnrl\ndVs/VEddwr4bz2JTXL00EhCa31KUyvJEcUKs+/D7z4hPQDt7y/LanDnp9b7S\ntMiepMCTm3HGxkmoF0TmzaQZ+PhqETUWb4a8OdF0AXBj328wVFInOQ6Ea6fH\nVpS4KL125k6mShweEZFcEVJcZgMu9oivQ4ImlpgLC6Ft1CpAPF5LYzALg+fc\n4Y3XBnX+ZDlSaqm24OJGsjhY7uvcZ30e3rIXdAVUTotleSFs7TnbtISbr7N8\nK3wQ\r\n=SWCX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqcEkVtuJ8ZMmKBhkHoVOfeQDF9JexZAXO+wIPL5DUsAiAal/UUM98oUrWsAc+0QzvU7B0vahM2aLZWYexbRzXSFQ=="}]},"maintainers":[{"name":"eush77","email":"eush77@gmail.com"},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_1.0.2_1558440352235_0.39944475796897505"},"_hasShrinkwrap":false},"1.0.3":{"name":"unist-util-parents","version":"1.0.3","description":"utility to add references to parents on nodes in a tree","license":"MIT","keywords":["unist","unist-util","util","utility","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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":{"es6-weak-map":"^2.0.0"},"devDependencies":{"clone":"^2.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.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":"7faeaf832065e1c796e6a5829145944ce66f1eb4","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@1.0.3","_nodeVersion":"13.0.1","_npmVersion":"6.13.7","dist":{"integrity":"sha512-GA82HBLgPxR+qkOzbti/jxzmkMBDu8iS/mw58iCwLpCl9JpLyGxkVr7nsFpAX956qIsa5yKNKM5SeGS8yCY8Lw==","shasum":"9730446164303c40c01bcbe03221d11bc9189a4d","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-1.0.3.tgz","fileCount":4,"unpackedSize":7925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQRhdCRA9TVsSAnZWagAA2ygP/RoHrJlAzLGb+Wxivn+w\nnSvjNbt93Y8WfAKFQNYbi+dztwF0MeesWInYrxz1AW2yk1XvNBUSayKE9jUa\nK7zXrXLDyheM4qWYG1Tut5iSDnSxpkqJ4B9Nhx25ytxfbJVqyGaToNMbi8aN\n662Ia9TR6SS14lFsqJAreQbFuPyRZsUJy5hlhi50odDfafRW5QksEMmJlwpR\nFKW8n9ng75e83Ipyci7EcEQw7yclFFyALUUjA8zQJDOXywo0iHNoNSt7qYzC\nD7tnVclFumv8QSoBM5UZ38TCBNnXBOHCIjI11H7IYoZ8c0uwpQ/keGE4fOad\n6p5+oIQ9MRab9gwfiZrxPa2M+9xXPEYi4dc+nBRqjJ1ESwNKHcMn9NDmTADw\ne2uxbayZP/r4OhQcIGEccytLcGLkYyFHRvLNgUfbuSHv0hSfioD3lpfAs1MO\nFL1KiZtbfjRXQ71PigxOXr1jEoSMIhlq7M6QGLeRcZy8DqBs2l5yEPa8foVM\n+SBig6QssNee29R6u13TKTMk92hHuIhr6ga+NLsHfzvOux0FSGV0/3EXcTM8\nB0NzUj57ucrqSBVaiVVCsyJIgcLg/mugCuyh09bnfqw+jHv88t6y8r1TW7Pg\n83dG3iLR8GVRoyYfrxJCzBbqCZyD74irfRWx6soxK2s8OPSMbs9t4PW/gX6E\n7cxR\r\n=LPV9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiTRT9wubbax7rlXXv7BE2WW8yBjJsq68WTBj7PAAZ6wIgWXLRXoR7E7SIzP5eZZoalNyFf3tPyhms8WQQzvt6rVA="}]},"maintainers":[{"email":"keith@mcknig.ht","name":"kmck"},{"email":"tituswormer@gmail.com","name":"wooorm"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_1.0.3_1581324381352_0.9434042231655242"},"_hasShrinkwrap":false},"2.0.0":{"name":"unist-util-parents","version":"2.0.0","description":"unist utility to add references to parents on nodes in a tree","license":"MIT","keywords":["unist","unist-util","util","utility","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","clone":"^2.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","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":"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":{"capitalized-comments":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"1fe3497e5a8b074b968bcfc83935277782e69db4","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@2.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.9.0","dist":{"integrity":"sha512-7rRuxPJcGVo/XxelPusWMkcbVZol7BDEaBq3hqck0kQIykU2cZsLcOX//dxbqPhMA4eWYC+QK9rVS9HnTY53FQ==","shasum":"20654ee81c36a436c9bead2c12f62671a49a6431","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-2.0.0.tgz","fileCount":5,"unpackedSize":9274,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfBqECRA9TVsSAnZWagAAfAoP/i5BJEf1t2sYljdjziXY\nb6SEuDFeTw/LIM/biKg9biPJ3CeIiLr+XrGn37cKjoDiTifHntRrsocwJ9c/\nran1jHqyF5V+vGuY+Q3UIZn9vQzkf5q/8jcl3NEa9Vq/xeSUZ2BaQ/St7Taj\nhd7khLclOngOEA+Yl38EKALHqYTEcI+Tr0FtMqNOscCeDwXgWhNO9gTa2QMS\ngM4tjI6YMJtV4jlQ0j9sQKmo5QDFGfieh+7FHDg4o+p0z+PapT7Ho/3gsesk\ntBo9LetH1JA2o0FL7tJvu93FSA2f2GqPRW8KNLHAm3/645jgPVjBCRWHK9YG\nVzivkCHJKMWecnnFNCkSNOA3qdkm8O7vJqExhC9Js9jbuynAWViWgmLaFTKk\ng+bJQDSoA3/Rz6MHx40ZyM/MzvKkZ/RZlDkdXBfaLVFpetVkgfaIh5NUbZuq\ntOr4SPwS8z9OkS6Zj/GBp4OwSdeXMC+058ysCx9u3jCGS3u+Cc+0cVwbjVhh\nIkb/ZcjlvnhEKZ6UmFbFdhLmVpV93RdQdlessleQSCkAWAJN5zd4S+TqukOG\nH5hLVrHNKo+ZrizBZ0zZgGqHhdiESbilmY8FzKs0T3R25XVkrZjnO9Yr3vAu\nkFC+6xSH4NLyHEyLYouxCfN/iXFIkXDucw9DmMqEYp1rEph9B/HlCVew9HGp\nBUe6\r\n=Upgl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz1BMwXq7t1LVH3cgWjuSQgC0DRW1KwLvd01vhbydfFgIgJX4N51JFyckiR9RS4BDyzS6IIzmE5z3Jm8nanPtqBX8="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_2.0.0_1618745988379_0.7128820243703271"},"_hasShrinkwrap":false},"2.0.1":{"name":"unist-util-parents","version":"2.0.1","description":"unist utility to add references to parents on nodes in a tree","license":"MIT","keywords":["unist","unist-util","util","utility","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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"},"devDependencies":{"@types/clone":"^2.0.0","@types/mdast":"^3.0.0","@types/node":"^18.0.0","c8":"^7.0.0","clone":"^2.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","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,"rules":{"capitalized-comments":"off"}},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"a8ca793859b70a45bc29a7ee954bd9950391b2e4","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@2.0.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-8J41jNOgA9eHrD3nRQJR5eP0GZ8IbUio3u0eoZr7R+RgGCY031Rk4rYp4SZszMANVnYOTodw+sigS7Bo1JEnNQ==","shasum":"3509e39ecb3ffdda697dc87dcb869ff92b9a4b34","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-2.0.1.tgz","fileCount":7,"unpackedSize":12889,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8hRtxD0zP58T87u/vHvYhiEwW/ZsxNZT9xCH2UPAwxAiEA47+7bE+o8+1qwld1s+prUuOvT7rqSa/Sp/9nsrXYPnw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzqcfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMlBAAoR58SuJawvo3o62AvRRz/pLn4KyhZ/eoDTtNf8/xzj2f4J+P\r\nNg593fIkhV77dxHA8+HMj0+RHNI3356Wg7t/Oh72YIWvYd9tk/X5SbR3DNmj\r\nyZPDMj0PS5NaumMf7yVFGqNmAM+zaoj4ZjbFwZEThslMdG0HBh8RMG2Q/Hg0\r\nOsCLrOpnKJX6bg8N0ARdzVJFWiBwNcu3yW2gBwE4q7yaMFLyliyauWH/UueP\r\nk4n4+xIKWo1PU0TqsI7+4uNRm68MVPIVBgzqpDLvXn06eQDXj96y/YKQ48RG\r\nNaEO3zQX9nAnuSEF61eTWr2SaUzu9d44pzfumBxHcZtVDlYjtGAVr5Qh9wGu\r\nxAApLjCmKFXv0fxomU4nuhK2imnpt8eY805eOfwnCTb9zP6T3B9JXuula8A5\r\nOzkD06X6bOgDk0RMJAvnZPBudTnZ9e6ZAwaFu8UOSgB3Shy7YC/3KbqCA1+u\r\nn91a0djBUVOpUr/o1WNukiB8QMsvV5WXRPhIl9hBUaK8DYZgSL47N7MsoG+n\r\ndtQkEN0MSuMbF7Fp2En4ZDnRKai3PeDD3vN9CELAxi4rz1wRW8JhqBs5fBSA\r\nIMwcCeUo6Ybwc/CBeFKSWpVsNTxKy1Niss7hNHEwWf90MeUz9aF++1CH4zjF\r\nfS7zBJ9r8ax4A8WYfGhqWGW6IaboeIDu3bg=\r\n=k4sZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_2.0.1_1674487582949_0.4607531709035073"},"_hasShrinkwrap":false},"3.0.0":{"name":"unist-util-parents","version":"3.0.0","description":"unist utility to add references to parents on nodes in a tree","license":"MIT","keywords":["unist","unist-util","util","utility","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/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"},"devDependencies":{"@types/mdast":"^4.0.0","@types/node":"^20.0.0","@types/ungap__structured-clone":"^0.3.0","@ungap/structured-clone":"^1.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","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":"b80fce46fcd29b3606faa312739e110ba11a5c62","types":"./index.d.ts","homepage":"https://github.com/syntax-tree/unist-util-parents#readme","_id":"unist-util-parents@3.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.7.2","dist":{"integrity":"sha512-3DVSfp+MkJhcJbGn/W7aOlZYVpsMQQ054cpfbPHZAqYPu/lvu5rCdzjuIt4eEMriLkCWLcnJjax97Awm1Bkhtg==","shasum":"d1c746031168627ea17ae666f5dcbb5d66d3ec2d","tarball":"https://registry.npmjs.org/unist-util-parents/-/unist-util-parents-3.0.0.tgz","fileCount":7,"unpackedSize":13363,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5aJI/Y4fWFxNFlkNaVN9rPkofxrUPFgkYcEeGGiMARwIgUHH3ufLvJEi5bCrfrwO0Uo0MgGcBAGveAL5bJZGkFaw="}]},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unist-util-parents_3.0.0_1688726631034_0.6850828669138618"},"_hasShrinkwrap":false}},"readme":"# unist-util-parents\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 add references to parents on nodes in a 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    *   [`parents(tree)`](#parentstree)\n    *   [`Proxy`](#proxy)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis utility creates a proxy of the tree that acts like the original tree upon\nreading, but each proxied node has a reference to its parent node.\n\n## When should I use this?\n\nThis package can be very useful for problems where it is needed to figure out\nwhat a nodes ancestors are, because unist itself is a non-cyclical data\nstructure, and thus does not provide that information.\nOn the other hand, this info on ancestors can also be gathered when walking the\ntree with [`unist-util-visit-parents`][unist-util-visit-parents].\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-parents\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {parent} from 'https://esm.sh/unist-util-parents@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {parent} from 'https://esm.sh/unist-util-parents@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {u} from 'unist-builder'\nimport {parents} from 'unist-util-parents'\n\nconst tree = u('root', [\n  u('leaf', 'leaf 1'),\n  u('node', [\n    u('leaf', 'leaf 2'),\n    u('void'),\n    u('node', [\n      u('leaf', 'leaf 3'),\n      u('node', [u('leaf', 'leaf 4')]),\n      u('void'),\n      u('leaf', 'leaf 5')\n    ])\n  ])\n])\n\nconst wrapped = parents(tree)\n\n// Leaf 4\nconst node = wrapped.children[1].children[2].children[1].children[0]\n\nconst chain = []\nwhile (node) {\n  chain.push(node.type)\n  node = node.parent\n}\n\nconsole.log(chain.reverse())\n```\n\nYields:\n\n```js\n['root', 'node', 'node', 'node', 'leaf']\n```\n\n## API\n\nThis package exports the identifier [`parents`][api-parents].\nThere is no default export.\n\n### `parents(tree)`\n\nCreate a proxy of `tree` that acts like the original tree upon reading, but\neach proxied node has a reference to its parent node.\n\n###### Notes\n\nThe returned proxy imposes two additional fields on all of its nodes:\n\n*   `parent` — parent link (or `undefined` for the root)\n*   `node` — link to the original node\n\nThese new fields are not enumerable and the original tree is *not changed*.\nThis means you can use `JSON.stringify` on the wrapped tree and it’s the same.\n\n`wrapped.children` returns array of wrapped child nodes, so that any recursive\nalgorithm will work on a wrapped tree just as well.\n\nTo write changes to the tree, use `.node` to access the original tree.\n\n###### Parameters\n\n*   `tree` ([`Node`][node])\n    — tree to proxy\n\n###### Returns\n\nProxy of `tree` ([`Proxy`][api-proxy]).\n\n### `Proxy`\n\nA proxy of a [`Node`][node] that adds two additional fields:\n\n*   `parent` — parent link (or `undefined` for the root)\n*   `node` — link to the original node\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Proxy`][api-proxy].\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-parents@^3`,\ncompatible with Node.js 16.\n\n## Related\n\n*   [`unist-util-visit-parents`][unist-util-visit-parents]\n    — walk the tree with ancestral information\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-parents/workflows/main/badge.svg\n\n[build]: https://github.com/syntax-tree/unist-util-parents/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/unist-util-parents.svg\n\n[coverage]: https://codecov.io/github/syntax-tree/unist-util-parents\n\n[downloads-badge]: https://img.shields.io/npm/dm/unist-util-parents.svg\n\n[downloads]: https://www.npmjs.com/package/unist-util-parents\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-parents\n\n[size]: https://bundlejs.com/?q=unist-util-parents\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[unist-util-visit-parents]: https://github.com/syntax-tree/unist-util-visit-parents\n\n[api-parents]: #parentstree\n\n[api-proxy]: #proxy\n","maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"},{"name":"kmck","email":"keith@mcknig.ht"}],"time":{"modified":"2023-07-07T10:43:51.497Z","created":"2015-09-15T20:12:24.765Z","0.1.0":"2015-09-15T20:12:24.765Z","0.1.1":"2015-09-15T21:06:49.059Z","0.1.2":"2015-10-21T15:29:30.542Z","1.0.0":"2017-06-12T19:04:22.344Z","1.0.1":"2018-08-17T09:22:26.022Z","1.0.2":"2019-05-21T12:05:52.350Z","1.0.3":"2020-02-10T08:46:21.505Z","2.0.0":"2021-04-18T11:39:48.518Z","2.0.1":"2023-01-23T15:26:23.096Z","3.0.0":"2023-07-07T10:43:51.223Z"},"homepage":"https://github.com/syntax-tree/unist-util-parents#readme","keywords":["unist","unist-util","util","utility","parent","parents","node","nodes","ast","reference","walk"],"repository":{"type":"git","url":"git+https://github.com/syntax-tree/unist-util-parents.git"},"author":{"name":"Eugene Sharygin","email":"eush77@gmail.com"},"bugs":{"url":"https://github.com/syntax-tree/unist-util-parents/issues"},"license":"MIT","readmeFilename":"readme.md","contributors":[{"name":"Eugene Sharygin","email":"eush77@gmail.com"},{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"users":{"flumpus-dev":true}}