{"_id":"remark-remove-unused-definitions","_rev":"7-a13fc412a610a8a235a671384ad5561a","name":"remark-remove-unused-definitions","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"remark-remove-unused-definitions","version":"1.0.0","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@1.0.0","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"788dff3078ac73e5583e6b8616a4bf30bc740a54","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-1.0.0.tgz","fileCount":5,"integrity":"sha512-AXOSKf0rWC3MqNfIaTqNKiGry+vzAluj7TXUuE5i+bxLs02Vuh7GDAdXBluqdqlzsQdNDGuD53U2dTAZ+PK2Pw==","signatures":[{"sig":"MEUCIE+KfYI/4fYFqddhb6EH6e1UbaTwZdDOmaNSR59E+Tj6AiEA2L+s6nh9kGnIHvtwANYIPILJcMmq+DOhvR+69fyx0Zk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUzf3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLZQ//UUNezQcPsyVfgwxWlb1bI24GEgBB5i0nXmK2jAtjOYzTeGuv\r\nLtdlJ4YKXBdhNKjVgiRM1agPoFNkryu1ELOdzuENqpGwz6PEeKYWT6O6vXtw\r\nl4BqI1xP3e+mM7xu/Od834Yna3CAGZq6FlTU0YLYLdLGSl9E/VsMVb3XOGsO\r\nWbH7hu7j5Fx/YfsMx9X8C9HdRwD494dw4kR4igE+DZkgi/ZBJZH1NUd5IKHc\r\nmHEV0+vaqF12TLJgEYIBTmscxKGHOiJGKweJuVBp4/rn+VfZk9JvZaPtzxXv\r\nvIPHqWBr5HIEuKwWNS80xhhsxuT0TNgMYVGo5B/kqESRjP+iNpNd7BZRsTPw\r\nbxt+MX0B8SO0cDQUnY+X0ZaPqk7vSaY9Q/kwf675Zq2CCUFX646CqdERl6rP\r\nz6NmbFUBuFhO1/jsJE48pOorITMcEXxT5JLIsuJ8HXzJ83ciCIZkSIORq3CQ\r\nETyhT5N/qjK4OCsRwIy0xYKj6V1pWii6TBJNdPthZHBQlquWPpWyuKObkkPn\r\n11gwrVfmOz8MkPh68+pBpbQ1o0toxeA7Z6QRyOe1Nv4+ETXXNwR/LYoX+quF\r\nJ++zsLCF889jkI9w1voR8JN6u0Xlu7cNKtyhtCrjZYk5CKgKcoS77MKZ3DXh\r\nB23uLEbOpUAkXqp4pz+fod1PcI0JIwmlTk8=\r\n=gjds\r\n-----END PGP SIGNATURE-----\r\n"},"type":"commonjs","config":{"plugin-build":{"docs":{"entry":"./src/*"}}},"engines":{"node":"^14.19.0 || ^16.13.0 || >=17.4.0"},"exports":{".":{"node":"./dist/index.mjs","types":"./dist/index.d.ts","default":"./dist/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"a15917222dcddb8658e58434f8eecd57067195ea","scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist --out-file-extension .mjs --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").config?.[\"plugin-build\"]?.docs?.entry; if(!entry) throw new Error(\"\\\"config['\"'\"'plugin-build'\"'\"'].docs.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY) && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md; fi && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`/`\\(destructured\\)`/g' {} + && find docs -name '*.md' -exec sed -i -E 's/`__namedParameters\\.([^`]+)`/`\\({ \\1 }\\)`/g' {} +","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"8.19.2","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"18.10.0","dependencies":{"unified":"^10.1.2","@types/mdast":"^3.0.10","unist-util-visit":"^4.1.1","unist-util-generated":"^2.0.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_1.0.0_1666398198837_0.6737674283409758","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"remark-remove-unused-definitions","version":"1.0.1","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@1.0.1","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"7cf67ae43a1296cc04f12f356c4fb42b3f05632b","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-1.0.1.tgz","fileCount":5,"integrity":"sha512-JYDnKs6TdvyuMJRjFJGdSWbHwV7rSI0+vMdT4+geJ9ygvFbmGsTTGKVhruplLR4K0GOgRhQ3A8VZ4vdjbvlIfw==","signatures":[{"sig":"MEUCIA2x7DBJAA2Tm+R8uEE4SiqVPlzjaVNWt28TNnxxhgf6AiEA/B2Z5DFpABO/Eg7MJLKATEPLyEmvFT+HxpCx2SEygUo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVA4JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNDQ/+IuJIgI35L6KkC9iWWZzuXjQrbYETJlGq7Rj0yjR53dTufUsb\r\nFHUX82BxKRXKSsyryV2WGLTdVZXpKODv6YIZNbK2Un7edh9Fp24IaZmmY2fe\r\nlHl7VHt+cKhtbE4uUaYRgI7auyi/ab7WcovJBXQ9Pky7Vp4465qwXHpTBhwC\r\nKYkhjO1WjM3yUAMI0Psq1Vrh+4Jc55GavZYj6hoOz33utVKn90O6b7oUtzuR\r\nYyhL2D3NCiuZGWi88YUJqdbb7ezoQ6wCfAHEdOaEu0d/PyMza5pGPe39uZ8p\r\nbxAW7lWci+U1oW/zd2LCO244xtloYHfBgpK6sBpbPm36le7qmlzXST/C8yhq\r\nNq/Dr+j/emP37cXEBBz/172OHv4h1DrYry5aUSEn2VTuex0UkSeYIxOUocBO\r\nvjHT9L/AHd1n/46FytvAo3mlAwhEeGJcdXTCi5CC2QuXnUrEGLIBwawqCwj0\r\n2bRI12NKru8fn9EKRoCw60SBW3vTEGwIIsXidsYbSPi7/zZRvPLUVH9Hme3e\r\n8enX4dM3hgu7RHMGu7lls2rgPNHLWWQppWI7bl1loyITYHZqke1maIY2qkdg\r\nt4exfWljQBW2OcLtP8dIjzrEhvRWFc77OJmrMsKqD2ThGtfFNpSmGIuj/U4C\r\njunS4apLIKjNm+60ug56CHTf2lEe7ckX1G0=\r\n=bHDk\r\n-----END PGP SIGNATURE-----\r\n"},"type":"commonjs","config":{"plugin-build":{"docs":{"entry":"./src/*"}}},"engines":{"node":"^14.19.0 || ^16.13.0 || >=17.4.0"},"exports":{".":{"node":"./dist/index.mjs","types":"./dist/index.d.ts","default":"./dist/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"689ca2184de4c4e5ca3cbc528a137cb9b0199c97","scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist --out-file-extension .mjs --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").config?.[\"plugin-build\"]?.docs?.entry; if(!entry) throw new Error(\"\\\"config['\"'\"'plugin-build'\"'\"'].docs.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY) && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md; fi && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`/`\\(destructured\\)`/g' {} + && find docs -name '*.md' -exec sed -i -E 's/`__namedParameters\\.([^`]+)`/`\\({ \\1 }\\)`/g' {} +","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"8.19.2","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"18.10.0","dependencies":{"unified":"^10.1.2","@types/mdast":"^3.0.10","unist-util-visit":"^4.1.1","unist-util-generated":"^2.0.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_1.0.1_1666453001616_0.6999841554741095","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"remark-remove-unused-definitions","version":"1.0.2","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@1.0.2","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"b56123c01f1947ab16da433e234ab500a9a18542","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-1.0.2.tgz","fileCount":5,"integrity":"sha512-vKwAr5ruYWDsem0IW8a/r0FxoJJ2ROHjWzKtp6txy0Qg0vpM1ocfVNSNk1prf1EHGaUrZcS4P0b90PYa3l0tVg==","signatures":[{"sig":"MEUCIHi/08OmyE3d4HwBtsvMv3sSFIQ8KsSFQtZEuArg0p6GAiEAwpgPQ4TvhzCmExozxMaYG/Y3aiIYlAZCoxuW5Ou6ZKQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14180,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW4m4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmexAAkRvGkmtZjxsHgIew2gYnRHXuN1Xs+U5GDxviDHDAakFy2QDN\r\nai9m24TWjUYGL6T6YqhaPaIZoCnFa+WG4T1QGxGk2BO/54IUgqZEtbV78cCK\r\nZDNrYtTMIyNBiz9mnRw1VFW1PL/aw/aLK06LjI+qtf+/3p0RkGqawyepM5fO\r\nozalWC38niT89IZKY4sUvCK0sdg6r8g5xKvbw+xKnCuIX5NNVeTmiBv3u2Cz\r\nBzzURF3W+iZ06SS6hhM0Ebw6c38eKqawpDMupPkCqMhKMMyHlMWXkA6OqSV/\r\n2cmUhx301ra6hMoPgYf5cPiTVTCio73YF+2GZBMvbslrQcDnX8pgPWSnV1iW\r\nfcECO+j/chc2Ag3Ip4k4EOkZx2UKePVjt9e7VRrBEiQMXoUl9P/qS6Xdm0q+\r\ngptxohBUj/lwL2szK24w2JY6ptHBkxgSPJ9UG8/Zi04ixVbyZsC1EWxuybW/\r\nd78/U09iswfMC83lQarKLXwBBvJLljNMc0YQXty1IkILCs+QN4kgo55v7pAw\r\nyMRSBYIQ/by4LKm3gNr3RmIe3ZU8QHq2/c+pu7DdwLSqmplvK2E31bksfLPG\r\nUYmlSFhs58qS/fUNS2FjZNRu8PSl3y23ggFvu0kaScyuEWOING6ZvZHI+ggL\r\nGhUktIS5aGuvoowPJw/A2xZkaY+UVVNP3RI=\r\n=5vl6\r\n-----END PGP SIGNATURE-----\r\n"},"type":"commonjs","config":{"plugin-build":{"docs":{"entry":"./src/*"}}},"engines":{"node":"^14.19.0 || ^16.13.0 || >=17.4.0"},"exports":{".":{"node":"./dist/index.mjs","types":"./dist/index.d.ts","default":"./dist/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"d3cc7134f94d3e466f694c6f606f408e8453d09b","scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist --out-file-extension .mjs --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").config?.[\"plugin-build\"]?.docs?.entry; if(!entry) throw new Error(\"\\\"config['\"'\"'plugin-build'\"'\"'].docs.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY) && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md; fi && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`/`\\(destructured\\)`/g' {} + && find docs -name '*.md' -exec sed -i -E 's/`__namedParameters\\.([^`]+)`/`\\({ \\1 }\\)`/g' {} +","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"8.19.2","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"18.10.0","dependencies":{"unified":"^10.1.2","@types/mdast":"^3.0.10","unist-util-visit":"^4.1.1","unist-util-generated":"^2.0.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_1.0.2_1666943416026_0.9854960455246424","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"remark-remove-unused-definitions","version":"1.0.3","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@1.0.3","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"01f33fcd91a2528af9ac6eb8252830eb613f6c68","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-1.0.3.tgz","fileCount":5,"integrity":"sha512-fdzdDloxTI4RIA1gU2vLExLq9igNfVNPUx265r+WfkklmRP0AcEIDdwpcXngZYrpl0cEgAeQKE1vSoijzJ/JVQ==","signatures":[{"sig":"MEYCIQDwEutf+KHNng/fGXCsgzUfIg3GlOc98uj3ZYjAaOd79wIhALlfoo6llEcpD3cbIgKJlicZwiZCfeLRHNIfFVM1hsTC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtbo9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfUw/+PT21ZBe7XQfny6busrHVkklEZ6QQlBRS5pOZFSxyBDVjIfy4\r\nbIanAcIwN2VdCqG93FGU2LpA6v97iMutXRuOtGbs07X2QiiNbNdk1h7TOGSE\r\nTZtrfyRiCvnqpold7v0lRLi3M0jvLrz+r+ve+jJ1tBn2jt8NQIzG5W/qrHEC\r\nbNKrQdRb0j/hdnG2j940bzNlPH1URJ1e0RW9LS1LTATDx8RYzJYsHHDrsgt1\r\nogY2ySAWGzYEOMPg9F1DsBSAJsI1dq4jK7Bg2Lm0jQOb+OOsQynN3JBWX8g6\r\nCB3EbpX6t70KdcA4vvqxMSdVoXowK9v1aDfiSahh2Cz6S4YKsMq2wb79hNqq\r\nGaYAMiURyiDUk4vKuQANTqyuMZJ8Ssul1e977mCT1Mimr1jtscW/9R95+iOV\r\nCGFI1D23d24J9YsOIOd5siRnVWJahaY2XVfzR27inL3Rx3Wti6NSv3htM+Zw\r\nAJcaGf27xKsqSGMnN3nYKGD3Tgvw1X8oGxlsNEA/OVSmcPci27W7xHry/8rm\r\nbqWQ0JUs0ahsKlDyR8Cnt9B2eZFR+HD2rwmVWHsAsRVUvtbqjjE+Y8VLwGBA\r\nG1kudOAf1/wOUnV85/HxmN/f9SmD3ANstY8q0s6JCUTTbFi5CnSewYZnKuUd\r\nCNyDkHn/GQU9lpzbvr1mwdfGiU8FOgX7dhU=\r\n=mPL3\r\n-----END PGP SIGNATURE-----\r\n"},"type":"commonjs","config":{"plugin-build":{"docs":{"entry":"./src/*"}}},"engines":{"node":"^14.19.0 || ^16.13.0 || >=17.4.0"},"exports":{".":{"node":"./dist/index.mjs","types":"./dist/index.d.ts","default":"./dist/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"63e25043d6c6023835a96cae5d6652583a8b0291","scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist --out-file-extension .mjs --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").config?.[\"plugin-build\"]?.docs?.entry; if(!entry) throw new Error(\"\\\"config['\"'\"'plugin-build'\"'\"'].docs.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY); fi","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"8.19.3","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"18.12.1","dependencies":{"unified":"^10.1.2","@types/mdast":"^3.0.10","unist-util-visit":"^4.1.1","unist-util-generated":"^2.0.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_1.0.3_1672854077271_0.24742008564265272","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"remark-remove-unused-definitions","version":"1.0.4","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@1.0.4","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"7f1c7dcc5f1333d261469fb47a65cf1a1a6b978a","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-1.0.4.tgz","fileCount":5,"integrity":"sha512-wKMl64XMRPd3BoEoljD+n755l0xNp7443ONmsLB/OO6+DXJXWn2iXG4MoIDdc+InIIAn4Y3GSBec1qT5irLtQg==","signatures":[{"sig":"MEUCIA687SSZ0a/47WRCeUNMXdTcfk1iInQ9wxsktF5SZbcFAiEAh7s7AsC6oPZ8zpp1jEgnx/E0adubOI6YvtpwUpKONYk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj1g6+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAEBAApOPSZOohxu+4cjv/Pm4sJdPk3r8JoX20MRT61yciwYd/fCpF\r\ncuG0j5vyhZRjoTxmXM+QtplzUuzw0BVYBLBfBYcYeONj1vtRqeEm2Qc5RUo8\r\nxzX0hlOJVgUboloZiPwu742Mn2fTFtmVLutYkzsJL5Psxn3iiS6R9DUMsJHZ\r\nlXQSqxkm/h8LupMVxz0IZ4CCygaxT691DxSLR7XyDyrvfdnflZ3m7HVRRKbz\r\nGii0TQmuBe45teHyCFgFtjTqIRv4/GcKiFQzR6070rlUpj1O249Ou3QJbPDs\r\nE7CM9lJWbRZsZ3B2IZUKcLN3K10gglhKpo07tY47aXFsipu52pmmYUCfuIKC\r\nTexENRkjkygj+XosjgWuBtBRDL0z+46cCDmIU8U993B5tKigqPx2xW8VxbUq\r\nzf2OsW1kfm2zIlw2iN2bpSP4agARyUJdlwFJHEOcRwyFTdm6XMLV8pFfBmow\r\nE+lloozO/SDzHlcyR8Aw/FcrSVuukRCK9tvI2r1m184wnsaeLjiMQKrOAEqG\r\nrDkjRpTcqSQYLMKEb/w7X25xxDsN/lyrJdCigUWj8oLki3GisqnrqnVCKetZ\r\n9C5jswxLEZWKyszFfR5VDKi37Ke+OCZLaWqYMOE0H07lhik9X4c1gHAJR8Ck\r\nH12bGZxJ0diVSmwmx43drw8A/h5kBQ5xF0A=\r\n=QuGO\r\n-----END PGP SIGNATURE-----\r\n"},"type":"commonjs","engines":{"node":"^14.19.0 || ^16.13.0 || >=17.4.0"},"exports":{".":{"node":"./dist/src/index.mjs","types":"./dist/src/index.d.ts","default":"./dist/src/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"d558101639da364c46525faa9202285575d1baf4","project":{"documentation":{"entry":"./src/*"}},"scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"echo '> Generating types...' && NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && echo '> Building distributables...' && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist/src --out-file-extension .mjs --root-mode upward && echo '> Organizing types...' && cp --recursive --link --force --target-directory=dist dist/$(realpath --relative-base=../.. .)/* && rm --recursive --force dist/$(realpath --relative-base=../.. ..) && echo '> Refactoring types...' && NODE_ENV=production-types npx babel dist --extensions .ts --only '**/*.d.ts' --out-dir dist --keep-file-extension --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").project?.documentation?.entry; if(!entry) throw new Error(\"\\\"project.documentation.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY); fi","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"8.19.3","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"18.13.0","dependencies":{"unified":"^10.1.2","@types/mdast":"^3.0.10","unist-util-visit":"^4.1.2","unist-util-generated":"^2.0.1"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/src/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_1.0.4_1674972862523_0.19960297125674664","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"remark-remove-unused-definitions","version":"2.0.0","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"author":{"name":"Xunnamius"},"license":"MIT","_id":"remark-remove-unused-definitions@2.0.0","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"homepage":"https://github.com/Xunnamius/unified-utils/blob/main/packages/remark-remove-unused-definitions","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"dist":{"shasum":"f64919c8da9e61fb41926f3cfa23e9ba2b5914c0","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-2.0.0.tgz","fileCount":5,"integrity":"sha512-qfcg6h9baITxn8IK16CUGgrQHTuBVxI8sOQBOq69P9anSvme00/XQ6+fwQiyle6RCcahfmaRTeuJoVZhjsUvNQ==","signatures":[{"sig":"MEUCIF978mwVpAWdxOHzlz6aTW3tiCAfHhqn1S+tNUVdxtGTAiEAiFji1tQSIXk0j00USnXwY5ImhTcEEjrJaq7U3A83Ef0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14350},"type":"commonjs","engines":{"node":"^18.16.0 || >=20.4.0"},"exports":{".":{"node":"./dist/src/index.mjs","types":"./dist/src/index.d.ts","default":"./dist/src/index.mjs"},"./package":"./package.json","./package.json":"./package.json"},"gitHead":"81ba8b727d68f48fd2819f26a7784abbe67747fa","project":{"documentation":{"entry":"./src/*"}},"scripts":{"lint":"echo 'IMPLEMENT ME'","test":"npm run test:unit --","build":"npm run build:dist --","clean":"git ls-files --exclude-standard --ignored --others --directory | grep -vE '^((\\.(env|vscode|husky))|next-env\\.d\\.ts|node_modules)($|\\/)' | xargs -p rm -rf","format":"cd ../.. && npm run format","test:unit":"echo 'IMPLEMENT ME'","build:dist":"echo '> Generating types...' && NODE_ENV=production tsc --project tsconfig.types.json --incremental false && tsconfig-replace-paths --project tsconfig.types.json && echo '> Building distributables...' && NODE_ENV=production-esm babel src --extensions .ts --out-dir dist/src --out-file-extension .mjs --root-mode upward && echo '> Organizing types...' && cp --recursive --link --force --target-directory=dist dist/$(realpath --relative-base=../.. .)/* && rm --recursive --force dist/$(realpath --relative-base=../.. ..) && echo '> Refactoring types...' && NODE_ENV=production-types npx babel dist --extensions .ts --only '**/*.d.ts' --out-dir dist --keep-file-extension --root-mode upward","build:docs":"if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'const entry = require(\"./package.json\").project?.documentation?.entry; if(!entry) throw new Error(\"\\\"project.documentation.entry\\\" field is not defined in package.json\"); console.log(entry)'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --cleanOutputDir --tsconfig tsconfig.docs.json --out docs --readme none $(echo $ENTRY); fi","list-tasks":"node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'","build:changelog":"conventional-changelog --outfile CHANGELOG.md --config ../../conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"../../conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && NODE_ENV=format remark --output --frail CHANGELOG.md && prettier --write CHANGELOG.md","test:integration":"echo 'IMPLEMENT ME'"},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"repository":{"url":"git+https://github.com/Xunnamius/unified-utils.git","type":"git"},"_npmVersion":"9.9.2","description":"remark plugin that removes unused reference definitions from a document","directories":{},"sideEffects":false,"_nodeVersion":"20.9.0","dependencies":{"unified":"^11.0.4","@types/mdast":"^4.0.3","unist-util-visit":"^5.0.0","unist-util-generated":"^3.0.0"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/src/index.d.ts"]}},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/remark-remove-unused-definitions_2.0.0_1701311065976_0.5268979228858581","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"remark-remove-unused-definitions","version":"3.0.0","description":"remark plugin that removes unused reference definitions from a document","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"homepage":"https://github.com/Xunnamius/unified-utils/tree/main/packages/remark-remove-unused-definitions#readme","bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"repository":{"type":"git","url":"git+https://github.com/Xunnamius/unified-utils.git"},"license":"MIT","author":{"name":"Xunnamius"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/packages/remark-remove-unused-definitions/src/index.d.ts","default":"./dist/packages/remark-remove-unused-definitions/src/index.js"},"./package":"./package.json","./package.json":"./package.json"},"typesVersions":{"*":{"index":["dist/packages/remark-remove-unused-definitions/src/index.d.ts"],"package":["package.json"]}},"scripts":{"build":"npm run build:dist --","build:changelog":"symbiote build changelog --env NODE_NO_WARNINGS=1","build:dist":"symbiote build distributables --env NODE_NO_WARNINGS=1 --not-multiversal","build:docs":"symbiote build docs --env NODE_NO_WARNINGS=1","clean":"symbiote clean --env NODE_NO_WARNINGS=1","format":"symbiote format --env NODE_NO_WARNINGS=1 --hush","info":"symbiote project info --env NODE_NO_WARNINGS=1","lint":"npm run lint:package --","lint:package":"symbiote lint --env NODE_NO_WARNINGS=1 --hush","lint:packages":"symbiote lint --env NODE_NO_WARNINGS=1 --hush --scope unlimited","lint:project":"symbiote project lint --env NODE_NO_WARNINGS=1","list-tasks":"symbiote list-tasks --env NODE_NO_WARNINGS=1 --scope this-package","release":"symbiote release --env NODE_NO_WARNINGS=1","start":"symbiote start --env NODE_NO_WARNINGS=1 --","test":"npm run test:package:unit --","test:package:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --coverage","test:package:e2e":"symbiote test --env NODE_NO_WARNINGS=1 --tests e2e-local","test:package:integration":"symbiote test --env NODE_NO_WARNINGS=1 --tests integration","test:package:unit":"symbiote test --env NODE_NO_WARNINGS=1 --tests unit type","test:packages:all":"symbiote test --env NODE_NO_WARNINGS=1 --tests all-local --scope unlimited --coverage"},"dependencies":{"@types/mdast":"^4.0.4","unified":"^11.0.5","unist-util-generated":"^3.0.0","unist-util-visit":"^5.0.0"},"devDependencies":{"@-xun/fs":"^2.0.0","rejoinder":"^2.1.0","remark":"^15.0.1","remark-gfm":"^4.0.1","to-vfile":"^8.0.0","type-fest":"^4.41.0"},"engines":{"node":"^20.18.0 || >=22.12.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_id":"remark-remove-unused-definitions@3.0.0","gitHead":"05d056db64b35a0496f5ea26008e20ca544d6bf0","_nodeVersion":"24.7.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-jcaFtpaoXm3Z2Us5YJsumAhPVIhfEMoREV3CorwLIyWRfXeTb3ehvF80bZyeZfToo1CJ6hihCbt6UqoQMC0vxQ==","shasum":"660f6023c4aa4eb670b9238a2d41b5cc457f5ef6","tarball":"https://registry.npmjs.org/remark-remove-unused-definitions/-/remark-remove-unused-definitions-3.0.0.tgz","fileCount":5,"unpackedSize":19002,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFzb7zJvup1lwKoNh661ElB2DWKrQamnY14DDameWGOSAiEAi92ycKYgB5yscCHnH53m2DMH6CuSfifm6axNTnxjDFs="}]},"_npmUser":{"name":"xunnamius","email":"git@bernarddickens.dev"},"directories":{},"maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/remark-remove-unused-definitions_3.0.0_1756804646291_0.23516574035583693"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-22T00:23:18.778Z","modified":"2025-09-02T09:17:26.643Z","1.0.0":"2022-10-22T00:23:18.981Z","1.0.1":"2022-10-22T15:36:41.753Z","1.0.2":"2022-10-28T07:50:16.205Z","1.0.3":"2023-01-04T17:41:17.483Z","1.0.4":"2023-01-29T06:14:22.691Z","2.0.0":"2023-11-30T02:24:26.191Z","3.0.0":"2025-09-02T09:17:26.466Z"},"bugs":{"url":"https://github.com/Xunnamius/unified-utils/issues"},"author":{"name":"Xunnamius"},"license":"MIT","homepage":"https://github.com/Xunnamius/unified-utils/tree/main/packages/remark-remove-unused-definitions#readme","keywords":["unified","mdast","remark","remark-plugin","plugin","markdown","link","image","reference","definition","unused","remove","delete","clean"],"repository":{"type":"git","url":"git+https://github.com/Xunnamius/unified-utils.git"},"description":"remark plugin that removes unused reference definitions from a document","maintainers":[{"name":"xunnamius","email":"git@bernarddickens.dev"}],"readme":"<!-- symbiote-template-region-start 1 -->\n\n<p align=\"center\" width=\"100%\">\n  <img width=\"300\" src=\"https://raw.githubusercontent.com/Xunnamius/unified-utils/refs/heads/main/packages/remark-remove-unused-definitions/logo.png\">\n</p>\n\n<p align=\"center\" width=\"100%\">\n<!-- symbiote-template-region-end -->\nremark plugin that removes unused reference definitions from a document\n<!-- symbiote-template-region-start 2 -->\n</p>\n\n<hr />\n\n<div align=\"center\">\n\n[![Black Lives Matter!][x-badge-blm-image]][x-badge-blm-link]\n[![Last commit timestamp][x-badge-lastcommit-image]][x-badge-repo-link]\n[![Codecov][x-badge-codecov-image]][x-badge-codecov-link]\n[![Source license][x-badge-license-image]][x-badge-license-link]\n[![Uses Semantic Release!][x-badge-semanticrelease-image]][x-badge-semanticrelease-link]\n\n[![NPM version][x-badge-npm-image]][x-badge-npm-link]\n[![Monthly Downloads][x-badge-downloads-image]][x-badge-downloads-link]\n\n</div>\n\n<br />\n\n# remark-remove-unused-definitions\n\n<!-- symbiote-template-region-end -->\n\nThis is a [unified][1] ([remark][2]) plugin that removes unused reference\ndefinitions from a document. Also removes unused [GFM footnotes][3] definitions.\n\nWhile you can get a similar effect by running something like the following:\n\n```shell\nremark -o --use inline-links --use reference-links your-markdown-file.md\n```\n\nSuch a naive approach will _destroy_ all of your carefully considered\nalphanumeric reference ids (e.g. the \"alphanumeric-id\" in\n`[text][alphanumeric-id]`)! This plugin only elides _unused_ reference\ndefinitions, leaving the rest intact.\n\n<!-- symbiote-template-region-start 3 -->\n\n---\n\n<!-- remark-ignore-start -->\n<!-- symbiote-template-region-end -->\n<!-- START doctoc generated TOC please keep comment here to allow auto update -->\n<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Via API](#via-api)\n  - [Via remark-cli](#via-remark-cli)\n  - [Via unified configuration](#via-unified-configuration)\n- [API](#api)\n- [Examples](#examples)\n- [Related](#related)\n- [Appendix](#appendix)\n  - [Published Package Details](#published-package-details)\n  - [License](#license)\n- [Contributing and Support](#contributing-and-support)\n  - [Contributors](#contributors)\n\n<!-- END doctoc generated TOC please keep comment here to allow auto update -->\n<!-- symbiote-template-region-start 4 -->\n<!-- remark-ignore-end -->\n\n<br />\n\n## Install\n\n> Due to the nature of the unified ecosystem, this package is ESM only and\n> cannot be `require`'d.\n\n<!-- symbiote-template-region-end -->\n\nTo install:\n\n```shell\nnpm install --save-dev remark-remove-unused-definitions\n```\n\n## Usage\n\nFor maximum flexibility, there are several ways this plugin can be invoked.\n\n### Via API\n\n```typescript\nimport { read } from 'to-vfile';\nimport { remark } from 'remark';\nimport remarkRemoveUnusedDefs from 'remark-remove-unused-definitions';\n\nconst file = await remark()\n  .use(remarkRemoveUnusedDefs)\n  .process(await read('example.md'));\n\nconsole.log(String(file));\n```\n\n<!-- remark-ignore -->\n\n### Via [remark-cli](https://xunn.at/docs-remark-cli)\n\n```shell\nremark -o --use remove-unused-definitions README.md\n```\n\n<!-- remark-ignore -->\n\n### Via [unified configuration](https://xunn.at/docs-unified-configuration)\n\nIn `package.json`:\n\n```javascript\n  /* … */\n  \"remarkConfig\": {\n    \"plugins\": [\n      \"remark-remove-unused-definitions\"\n      /* … */\n    ]\n  },\n  /* … */\n```\n\nIn `.remarkrc.js`:\n\n```javascript\nmodule.exports = {\n  plugins: [\n    // …\n    'remove-unused-definitions'\n  ]\n};\n```\n\nIn `.remarkrc.mjs`:\n\n```javascript\nimport remarkRemoveUnusedDefs from 'remark-remove-unused-definitions';\n\nexport default {\n  plugins: [\n    // …\n    remarkRemoveUnusedDefs\n  ]\n};\n```\n\n## API\n\nDetailed interface information can be found under [`docs/`][x-repo-docs].\n\n## Examples\n\nSuppose we have the following Markdown file `example.md`:\n\n```markdown\n# Documentation\n\nThis [package][1] is [more than][2nd-half-idiom] meets the eye.\n\n## Install [remark][8]\n\n…\n\n[1st-half-idiom]: https://meme-link-1\n[2nd-half-idiom]: https://meme-link-2\n[1]: https://npm.im/some-package\n[2]: #install\n[3]: #usage\n[4]: #api\n[5]: #related\n[6]: #contributing-and-support\n[7]: #contributors\n[8]: https://npm.im/remark\n```\n\nThen running the following JavaScript:\n\n```typescript\nimport { read } from 'to-vfile';\nimport { remark } from 'remark';\nimport remarkRemoveUnusedDefs from 'remark-remove-unused-definitions';\n\nconst file = await remark()\n  .use(remarkRemoveUnusedDefs)\n  .process(await read('example.md'));\n\nconsole.log(String(file));\n```\n\nWould output the following (assuming remark is [configured][4] for tight\nreferences):\n\n```markdown\n# Documentation\n\nThis [package][1] is [more than][2nd-half-idiom] meets the eye.\n\n## Install [remark][8]\n\n…\n\n[2nd-half-idiom]: https://meme-link-2\n[1]: https://npm.im/some-package\n[8]: https://npm.im/remark\n```\n\nNow all the unused definitions have been deleted. Nice!\n\nFinally, notice how those numeric reference definition ids are not contiguous:\ninstead of `[1]` and `[2]` it's `[1]` and `[8]`. Luckily, there exists [a remark\nplugin][5] that will ensure numeric reference ids flow through the document in\nascending order starting from `[1]`.\n\n## Related\n\n- [remark-reference-links][6] — transform inline links into reference-style\n  links.\n- [remark-renumber-references][5] — contiguously renumber numeric\n  reference-style link ids starting from `[1]`.\n- [remark-sort-definitions][7] — logically reorder reference definitions at the\n  bottom of your document.\n\n<!-- symbiote-template-region-start 5 -->\n\n## Appendix\n\n<!-- symbiote-template-region-end -->\n\nFurther documentation can be found under [`docs/`][x-repo-docs].\n\n<!-- TODO: additional appendix sections here -->\n<!-- symbiote-template-region-start 6 -->\n\n### Published Package Details\n\nThis is an [ESM-only package][x-pkg-esm-wine] built by Babel for use in Node.js\nversions that are not end-of-life. For TypeScript users, this package supports\nboth `\"Node10\"` and `\"Node16\"` module resolution strategies.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional package details here -->\n<!-- symbiote-template-region-start 7 -->\n\n<details><summary>Expand details</summary>\n\nThat means ESM source will load this package via `import { ... } from ...` or\n`await import(...)` and CJS source will load this package via dynamic\n`import()`. This has several benefits, the foremost being: less code\nshipped/smaller package size, avoiding [dual package\nhazard][x-pkg-dual-package-hazard] entirely, distributables are not\npacked/bundled/uglified, and a drastically less complex build process.\n\nThe glaring downside, which may or may not be relevant, is that CJS consumers\ncannot `require()` this package and can only use `import()` in an asynchronous\ncontext. This means, in effect, CJS consumers may not be able to use this\npackage at all.\n\nEach entry point (i.e. `ENTRY`) in [`package.json`'s\n`exports[ENTRY]`][x-repo-package-json] object includes one or more [export\nconditions][x-pkg-exports-conditions]. These entries may or may not include: an\n[`exports[ENTRY].types`][x-pkg-exports-types-key] condition pointing to a type\ndeclaration file for TypeScript and IDEs, a\n[`exports[ENTRY].module`][x-pkg-exports-module-key] condition pointing to\n(usually ESM) source for Webpack/Rollup, a `exports[ENTRY].node` and/or\n`exports[ENTRY].default` condition pointing to (usually CJS2) source for Node.js\n`require`/`import` and for browsers and other environments, and [other\nconditions][x-pkg-exports-conditions] not enumerated here. Check the\n[package.json][x-repo-package-json] file to see which export conditions are\nsupported.\n\nNote that, regardless of the [`{ \"type\": \"...\" }`][x-pkg-type] specified in\n[`package.json`][x-repo-package-json], any JavaScript files written in ESM\nsyntax (including distributables) will always have the `.mjs` extension. Note\nalso that [`package.json`][x-repo-package-json] may include the\n[`sideEffects`][x-pkg-side-effects-key] key, which is almost always `false` for\noptimal [tree shaking][x-pkg-tree-shaking] where appropriate.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional package details here -->\n<!-- symbiote-template-region-start 8 -->\n\n</details>\n\n### License\n\n<!-- symbiote-template-region-end -->\n\nSee [LICENSE][x-repo-license].\n\n<!-- TODO: additional license information and/or sections here -->\n<!-- symbiote-template-region-start 9 -->\n\n## Contributing and Support\n\n**[New issues][x-repo-choose-new-issue] and [pull requests][x-repo-pr-compare]\nare always welcome and greatly appreciated! 🤩** Just as well, you can [star 🌟\nthis project][x-badge-repo-link] to let me know you found it useful! ✊🏿 Or [buy\nme a beer][x-repo-sponsor], I'd appreciate it. Thank you!\n\nSee [CONTRIBUTING.md][x-repo-contributing] and [SUPPORT.md][x-repo-support] for\nmore information.\n\n<!-- symbiote-template-region-end -->\n<!-- TODO: additional contribution/support sections here -->\n<!-- symbiote-template-region-start 10 -->\n\n### Contributors\n\n<!-- symbiote-template-region-end -->\n<!-- symbiote-template-region-start root-package-only -->\n<!-- (section elided by symbiote) -->\n<!-- symbiote-template-region-end -->\n<!-- symbiote-template-region-start workspace-package-only -->\n\nSee the [table of contributors][x-repo-contributors].\n\n<!-- symbiote-template-region-end -->\n\n[x-badge-blm-image]: https://xunn.at/badge-blm 'Join the movement!'\n[x-badge-blm-link]: https://xunn.at/donate-blm\n[x-badge-codecov-image]:\n  https://img.shields.io/codecov/c/github/Xunnamius/unified-utils/main?style=flat-square&token=HWRIOBAAPW&flag=package.main_remark-remove-unused-definition\n  'Is this package well-tested?'\n[x-badge-codecov-link]: https://codecov.io/gh/Xunnamius/unified-utils\n[x-badge-downloads-image]:\n  https://img.shields.io/npm/dm/remark-remove-unused-definitions?style=flat-square\n  'Number of times this package has been downloaded per month'\n[x-badge-downloads-link]: https://npmtrends.com/remark-remove-unused-definitions\n[x-badge-lastcommit-image]:\n  https://img.shields.io/github/last-commit/Xunnamius/unified-utils?style=flat-square\n  'Latest commit timestamp'\n[x-badge-license-image]:\n  https://img.shields.io/npm/l/remark-remove-unused-definitions?style=flat-square\n  \"This package's source license\"\n[x-badge-license-link]:\n  https://github.com/Xunnamius/unified-utils/blob/main/LICENSE\n[x-badge-npm-image]:\n  https://xunn.at/npm-pkg-version/remark-remove-unused-definitions\n  'Install this package using npm or yarn!'\n[x-badge-npm-link]: https://npm.im/remark-remove-unused-definitions\n[x-badge-repo-link]: https://github.com/Xunnamius/unified-utils\n[x-badge-semanticrelease-image]:\n  https://xunn.at/badge-semantic-release\n  'This repo practices continuous integration and deployment!'\n[x-badge-semanticrelease-link]:\n  https://github.com/semantic-release/semantic-release\n[x-pkg-dual-package-hazard]:\n  https://nodejs.org/api/packages.html#dual-package-hazard\n[x-pkg-esm-wine]:\n  https://dev.to/jakobjingleheimer/configuring-commonjs-es-modules-for-nodejs-12ed#esm-source-and-distribution\n[x-pkg-exports-conditions]:\n  https://webpack.js.org/guides/package-exports#reference-syntax\n[x-pkg-exports-module-key]:\n  https://webpack.js.org/guides/package-exports#providing-commonjs-and-esm-version-stateless\n[x-pkg-exports-types-key]:\n  https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta#packagejson-exports-imports-and-self-referencing\n[x-pkg-side-effects-key]:\n  https://webpack.js.org/guides/tree-shaking#mark-the-file-as-side-effect-free\n[x-pkg-tree-shaking]: https://webpack.js.org/guides/tree-shaking\n[x-pkg-type]:\n  https://github.com/nodejs/node/blob/8d8e06a345043bec787e904edc9a2f5c5e9c275f/doc/api/packages.md#type\n[x-repo-choose-new-issue]:\n  https://github.com/Xunnamius/unified-utils/issues/new/choose\n[x-repo-contributing]: /CONTRIBUTING.md\n[x-repo-contributors]: /README.md#contributors\n[x-repo-docs]: docs\n[x-repo-license]: ./LICENSE\n[x-repo-package-json]: package.json\n[x-repo-pr-compare]: https://github.com/Xunnamius/unified-utils/compare\n[x-repo-sponsor]: https://github.com/sponsors/Xunnamius\n[x-repo-support]: /.github/SUPPORT.md\n[1]: https://github.com/unifiedjs/unified\n[2]: https://github.com/remarkjs/remark\n[3]: https://github.com/remarkjs/remark-gfm#what-is-this\n[4]: /.remarkrc.mjs\n[5]: /packages/remark-renumber-references\n[6]: https://github.com/remarkjs/remark-reference-links\n[7]: /packages/remark-sort-definitions\n","readmeFilename":"README.md"}