{"_id":"rehype-slug","_rev":"3267382","name":"rehype-slug","description":"rehype plugin to add `id` attributes to headings","dist-tags":{"latest":"6.0.0"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T09:58:54.000Z","created":"2016-10-22T12:52:17.441Z","6.0.0":"2023-08-31T14:06:03.675Z","5.1.0":"2022-10-31T09:34:06.177Z","5.0.1":"2021-12-30T11:54:43.796Z","5.0.0":"2021-08-02T07:14:27.461Z","4.0.1":"2020-11-12T07:48:33.322Z","4.0.0":"2020-11-11T08:42:00.463Z","3.0.0":"2020-03-15T12:01:23.529Z","2.0.3":"2019-06-01T08:17:26.696Z","2.0.2":"2018-11-17T12:32:29.309Z","2.0.1":"2017-06-20T14:24:24.711Z","2.0.0":"2017-02-23T21:23:03.590Z","1.0.0":"2016-10-22T12:52:17.441Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"versions":{"6.0.0":{"name":"rehype-slug","version":"6.0.0","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["heading","html","id","plugin","rehype","rehype-plugin","slug","unified"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0","github-slugger":"^2.0.0","hast-util-heading-rank":"^3.0.0","hast-util-to-string":"^3.0.0","unist-util-visit":"^5.0.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^8.0.0","prettier":"^3.0.0","rehype":"^13.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.56.0"},"scripts":{"build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix","prepack":"npm run build && npm run format","test":"npm run build && npm run format && npm run test-coverage","test-api":"node --conditions development test.js","test-coverage":"c8 --100 --check-coverage --reporter lcov npm run test-api"},"prettier":{"bracketSpacing":false,"singleQuote":true,"semi":false,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true},"_id":"rehype-slug@6.0.0","gitHead":"f90fc8f4b469b54b26c13ce4b754bd7e6da3e351","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-slug#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"1d21cf7fc8a83ef874d873c15e6adaee6344eaf1","size":4669,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-6.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_6.0.0_1693490763435_0.5138991201785885"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-31T14:06:03.675Z","publish_time":1693490763675,"_source_registry_name":"default","_cnpm_publish_time":1693490763675},"5.1.0":{"name":"rehype-slug","version":"5.1.0","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","types":"index.d.ts","main":"index.js","dependencies":{"@types/hast":"^2.0.0","github-slugger":"^2.0.0","hast-util-has-property":"^2.0.0","hast-util-heading-rank":"^2.0.0","hast-util-to-string":"^2.0.0","unified":"^10.0.0","unist-util-visit":"^4.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","rehype":"^12.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.52.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 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,"ignoreCatch":true},"gitHead":"1c61632f1526c6b59c80530ed334d4a094c7a091","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@5.1.0","_nodeVersion":"18.2.0","_npmVersion":"8.19.1","dist":{"shasum":"1f7e69be7ea1a2067bcc4cfe58e74c881d5c047e","size":4439,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-5.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-5.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_5.1.0_1667208846027_0.25575651691839374"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-31T09:34:59.024Z","publish_time":1667208846177,"_cnpm_publish_time":1667208846177},"5.0.1":{"name":"rehype-slug","version":"5.0.1","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","types":"index.d.ts","main":"index.js","dependencies":{"@types/hast":"^2.0.0","github-slugger":"^1.1.1","hast-util-has-property":"^2.0.0","hast-util-heading-rank":"^2.0.0","hast-util-to-string":"^2.0.0","unified":"^10.0.0","unist-util-visit":"^4.0.0"},"devDependencies":{"@types/github-slugger":"^1.0.0","@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","rehype":"^12.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.47.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 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,"ignoreCatch":true},"gitHead":"22d2ab6d11faa250052a341e21c566705fc72e73","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@5.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"6e732d0c55b3b1e34187e74b7363fb53229e5f52","size":4290,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-5.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_5.0.1_1640865283662_0.1349310518047302"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-30T12:11:57.005Z","publish_time":1640865283796,"_cnpm_publish_time":1640865283796},"5.0.0":{"name":"rehype-slug","version":"5.0.0","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","types":"index.d.ts","main":"index.js","dependencies":{"@types/hast":"^2.0.0","github-slugger":"^1.1.1","hast-util-has-property":"^2.0.0","hast-util-heading-rank":"^2.0.0","hast-util-to-string":"^2.0.0","unified":"^10.0.0","unist-util-visit":"^4.0.0"},"devDependencies":{"@types/github-slugger":"^1.3.0","@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","rehype":"^12.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.42.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 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,"ignoreCatch":true},"gitHead":"7b0059714ce5ab0e4d7f9863256959b8c24be771","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@5.0.0","_nodeVersion":"16.6.0","_npmVersion":"7.19.1","dist":{"shasum":"dfafa1d11577e206970f2d0de023f8490a99dc31","size":3558,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-5.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_5.0.0_1627888467302_0.6153713449088205"},"_hasShrinkwrap":false,"publish_time":1627888467461,"_cnpm_publish_time":1627888467461,"_cnpmcore_publish_time":"2021-12-16T15:02:33.105Z"},"4.0.1":{"name":"rehype-slug","version":"4.0.1","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"types":"types/index.d.ts","dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-heading-rank":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^2.0.0"},"devDependencies":{"browserify":"^17.0.0","dtslint":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","rehype":"^11.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","unified":"^9.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify index.js -s rehypeSlug -o rehype-slug.js","build-mangle":"browserify index.js -s rehypeSlug -o rehype-slug.min.js -p tinyify","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"5d13c6410b21782cb4f9fe6b623978fc77aa2cf2","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@4.0.1","_nodeVersion":"15.1.0","_npmVersion":"6.14.8","dist":{"shasum":"313274501cffa997bd52dd57bf2da5851959747a","size":3361,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-4.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_4.0.1_1605167313107_0.8522191655586615"},"_hasShrinkwrap":false,"publish_time":1605167313322,"_cnpm_publish_time":1605167313322,"_cnpmcore_publish_time":"2021-12-16T15:02:33.661Z"},"4.0.0":{"name":"rehype-slug","version":"4.0.0","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-heading-rank":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^2.0.0"},"devDependencies":{"browserify":"^17.0.0","dtslint":"^4.0.0","nyc":"^15.0.0","prettier":"^2.0.0","rehype":"^11.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","tinyify":"^3.0.0","unified":"^9.0.0","xo":"^0.34.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","build-bundle":"browserify index.js -s rehypeSlug -o rehype-slug.js","build-mangle":"browserify index.js -s rehypeSlug -o rehype-slug.min.js -p tinyify","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"107bad560020f4ae4d2d643aa9fd6f256c52e487","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@4.0.0","_nodeVersion":"15.1.0","_npmVersion":"7.0.8","dist":{"shasum":"447b8adfe2e00384df466c5e0b43206572887b76","size":3354,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_4.0.0_1605084120282_0.07822722752311662"},"_hasShrinkwrap":false,"publish_time":1605084120463,"_cnpm_publish_time":1605084120463,"_cnpmcore_publish_time":"2021-12-16T15:02:34.278Z"},"3.0.0":{"name":"rehype-slug","version":"3.0.0","description":"rehype plugin to add `id` attributes to headings","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^2.0.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^15.0.0","prettier":"^1.0.0","rehype":"^9.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.28.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s rehypeSlug > rehype-slug.js","build-mangle":"browserify index.js -s rehypeSlug -p tinyify > rehype-slug.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && 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,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"76f382383e9af5a87fec7470b66b08e9598901b5","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@3.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.2","dist":{"shasum":"8416257df9665981894a1f0cd42b13c407bbcc8e","size":3247,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-3.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_3.0.0_1584273683396_0.5615353706316335"},"_hasShrinkwrap":false,"publish_time":1584273683529,"_cnpm_publish_time":1584273683529,"_cnpmcore_publish_time":"2021-12-16T15:02:34.508Z"},"2.0.3":{"name":"rehype-slug","version":"2.0.3","description":"rehype plugin to add id attributes to headings","license":"MIT","keywords":["unified","rehype","plugin","heading","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^1.1.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.0.0","rehype":"^7.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","tinyify":"^2.0.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify index.js -s rehypeSlug > rehype-slug.js","build-mangle":"browserify index.js -s rehypeSlug -p tinyify > rehype-slug.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && 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,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"a04968aaa5151fb249af0c589f64e4e8e7206867","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@2.0.3","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"cd0234de130f02e3607396ff2e873fc5a3bd0413","size":2984,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-2.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-2.0.3.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_2.0.3_1559377046553_0.38295775561448764"},"_hasShrinkwrap":false,"publish_time":1559377046696,"_cnpm_publish_time":1559377046696,"_cnpmcore_publish_time":"2021-12-16T15:02:34.772Z"},"2.0.2":{"name":"rehype-slug","version":"2.0.2","description":"Add id attributes to headings","license":"MIT","keywords":["rehype","plugin","slug","id"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-slug.git"},"bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^1.1.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^13.0.0","prettier":"^1.13.7","rehype":"^6.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.4.3","xo":"^0.23.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js -s rehypeSlug > rehype-slug.js","build-mangle":"browserify index.js -s rehypeSlug -p tinyify > rehype-slug.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && 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,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"4e5765e2e1247fcfb04fae4f7af1265d7bfb9ba0","homepage":"https://github.com/rehypejs/rehype-slug#readme","_id":"rehype-slug@2.0.2","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"a0d5a4118548ee6165b1f911a213a13e284d91ba","size":2827,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-2.0.2.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug_2.0.2_1542457949170_0.4150950374919684"},"_hasShrinkwrap":false,"publish_time":1542457949309,"_cnpm_publish_time":1542457949309,"_cnpmcore_publish_time":"2021-12-16T15:02:35.021Z"},"2.0.1":{"name":"rehype-slug","version":"2.0.1","description":"Add id attributes to headings","license":"MIT","keywords":["rehype","plugin","slug","id"],"repository":{"type":"git","url":"git+https://github.com/wooorm/rehype-slug.git"},"bugs":{"url":"https://github.com/wooorm/rehype-slug/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^1.1.0"},"devDependencies":{"browserify":"^14.1.0","esmangle":"^1.0.0","nyc":"^11.0.0","rehype":"^5.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.0.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s rehypeSlug > rehype-slug.js","build-mangle":"esmangle rehype-slug.js > rehype-slug.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"584c281739b43b5240e40697c2ae6e60383f0723","homepage":"https://github.com/wooorm/rehype-slug#readme","_id":"rehype-slug@2.0.1","_shasum":"8c1809ea1eb513b231f721cae17bd1ce9329e373","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"8c1809ea1eb513b231f721cae17bd1ce9329e373","size":2498,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-2.0.1.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rehype-slug-2.0.1.tgz_1497968663745_0.48237151000648737"},"directories":{},"publish_time":1497968664711,"_hasShrinkwrap":false,"_cnpm_publish_time":1497968664711,"_cnpmcore_publish_time":"2021-12-16T15:02:35.309Z"},"2.0.0":{"name":"rehype-slug","version":"2.0.0","description":"Add id attributes to headings","license":"MIT","keywords":["rehype","plugin","slug","id"],"repository":{"type":"git","url":"git+https://github.com/wooorm/rehype-slug.git"},"bugs":{"url":"https://github.com/wooorm/rehype-slug/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^1.1.0"},"devDependencies":{"browserify":"^14.1.0","esmangle":"^1.0.0","nyc":"^10.0.0","rehype":"^4.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^2.0.0","tape":"^4.0.0","xo":"^0.17.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s rehypeSlug > rehype-slug.js","build-mangle":"esmangle rehype-slug.js > rehype-slug.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"ignores":["rehype-slug.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"1c00a07313eb95467ac500703cac57c8435dfe1c","homepage":"https://github.com/wooorm/rehype-slug#readme","_id":"rehype-slug@2.0.0","_shasum":"b52f6c69faefc61420cb9ea8ba268e48531c61b9","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"b52f6c69faefc61420cb9ea8ba268e48531c61b9","size":2511,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-2.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rehype-slug-2.0.0.tgz_1487884982996_0.9367646840400994"},"directories":{},"publish_time":1487884983590,"_hasShrinkwrap":false,"_cnpm_publish_time":1487884983590,"_cnpmcore_publish_time":"2021-12-16T15:02:35.560Z"},"1.0.0":{"name":"rehype-slug","version":"1.0.0","description":"Add id attributes to headings","license":"MIT","keywords":["rehype","plugin","slug","id"],"repository":{"type":"git","url":"git+https://github.com/wooorm/rehype-slug.git"},"bugs":{"url":"https://github.com/wooorm/rehype-slug/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"github-slugger":"^1.1.1","hast-util-has-property":"^1.0.0","hast-util-is-element":"^1.0.0","hast-util-to-string":"^1.0.0","unist-util-visit":"^1.1.0"},"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","nyc":"^8.3.1","rehype":"^3.0.0","remark-cli":"^2.0.0","remark-preset-wooorm":"^1.0.0","tape":"^4.0.0","xo":"^0.17.0"},"scripts":{"build-md":"remark . --quiet --frail","build-bundle":"browserify index.js --bare -s rehypeSlug > rehype-slug.js","build-mangle":"esmangle rehype-slug.js > rehype-slug.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"ignores":["rehype-slug.js"]},"remarkConfig":{"output":true,"presets":"wooorm"},"gitHead":"d92fbf419daf007944e09645d217a4124dbd58ad","homepage":"https://github.com/wooorm/rehype-slug#readme","_id":"rehype-slug@1.0.0","_shasum":"eb417187097edb2482eba35283d5e8b6a73ff897","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"eb417187097edb2482eba35283d5e8b6a73ff897","size":2504,"noattachment":false,"key":"/rehype-slug/-/rehype-slug-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-slug/download/rehype-slug-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rehype-slug-1.0.0.tgz_1477140736105_0.32339432276785374"},"directories":{},"publish_time":1477140737441,"_hasShrinkwrap":false,"_cnpm_publish_time":1477140737441,"_cnpmcore_publish_time":"2021-12-16T15:02:35.945Z"}},"readme":"# rehype-slug\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**[rehype][]** plugin to add `id`s to headings.\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    *   [`unified().use(rehypeSlug[, options])`](#unifieduserehypeslug-options)\n    *   [`Options`](#options)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([rehype][]) plugin to add `id`s to headings.\nIt looks for headings (so `<h1>` through `<h6>`) that do not yet have `id`s\nand adds `id` attributes to them based on the text they contain.\nThe algorithm that does this is [`github-slugger`][github-slugger], which\nmatches how GitHub works.\n\n**unified** is a project that transforms content with abstract syntax trees\n(ASTs).\n**rehype** adds support for HTML to unified.\n**hast** is the HTML AST that rehype uses.\nThis is a rehype plugin that adds `id`s to headings in the AST.\n\n## When should I use this?\n\nThis plugin is useful when you have relatively long documents and you want to be\nable to link to particular sections.\n\nA different plugin, [`rehype-autolink-headings`][rehype-autolink-headings], adds\nlinks to these headings back to themselves, which is useful as it lets users\nmore easily link to particular sections.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install rehype-slug\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport rehypeSlug from 'https://esm.sh/rehype-slug@6'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import rehypeSlug from 'https://esm.sh/rehype-slug@6?bundle'\n</script>\n```\n\n## Use\n\nSay we have the following file `example.html`:\n\n```html\n<h1 id=some-id>Lorem ipsum</h1>\n<h2>Dolor sit amet ????</h2>\n<h3>consectetur &amp; adipisicing</h3>\n<h4>elit</h4>\n<h5>elit</h5>\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport {read} from 'to-vfile'\nimport {rehype} from 'rehype'\nimport rehypeSlug from 'rehype-slug'\n\nconst file = await rehype()\n  .data('settings', {fragment: true})\n  .use(rehypeSlug)\n  .process(await read('example.html'))\n\nconsole.log(String(file))\n```\n\n…then running `node example.js` yields:\n\n```html\n<h1 id=\"some-id\">Lorem ipsum</h1>\n<h2 id=\"dolor-sit-amet-\">Dolor sit amet ????</h2>\n<h3 id=\"consectetur--adipisicing\">consectetur &#x26; adipisicing</h3>\n<h4 id=\"elit\">elit</h4>\n<h5 id=\"elit-1\">elit</h5>\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`rehypeSlug`][api-rehype-slug].\n\n### `unified().use(rehypeSlug[, options])`\n\nAdd `id`s to headings.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], optional)\n    — configuration\n\n###### Returns\n\nTransform ([`Transformer`][unified-transformer]).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n*   `prefix` (`string`, default: `''`)\n    — prefix to add in front of `id`s\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, `rehype-slug@^6`,\ncompatible with Node.js 16.\n\nThis plugin works with `rehype-parse` version 1+, `rehype-stringify` version 1+,\n`rehype` version 1+, and `unified` version 4+.\n\n## Security\n\nUse of `rehype-slug` can open you up to a [cross-site scripting (XSS)][xss]\nattack as it sets `id` attributes on headings, which causes what is known\nas “DOM clobbering”.\nPlease use [`rehype-sanitize`][rehype-sanitize] and see its\n[Example: headings (DOM clobbering)][rehype-sanitize-example] for information on\nhow to properly solve it.\n\n## Related\n\n*   [`rehype-autolink-headings`][rehype-autolink-headings]\n    — add links to headings with IDs back to themselves\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/rehypejs/rehype-slug/workflows/main/badge.svg\n\n[build]: https://github.com/rehypejs/rehype-slug/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-slug.svg\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-slug\n\n[downloads-badge]: https://img.shields.io/npm/dm/rehype-slug.svg\n\n[downloads]: https://www.npmjs.com/package/rehype-slug\n\n[size-badge]: https://img.shields.io/bundlejs/size/rehype-slug\n\n[size]: https://bundlejs.com/?q=rehype-slug\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/rehypejs/rehype/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[health]: https://github.com/rehypejs/.github\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[github-slugger]: https://github.com/Flet/github-slugger\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[rehype-autolink-headings]: https://github.com/rehypejs/rehype-autolink-headings\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[rehype-sanitize-example]: https://github.com/rehypejs/rehype-sanitize#example-headings-dom-clobbering\n\n[typescript]: https://www.typescriptlang.org\n\n[unified]: https://github.com/unifiedjs/unified\n\n[unified-transformer]: https://github.com/unifiedjs/unified#transformer\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[api-options]: #options\n\n[api-rehype-slug]: #unifieduserehypeslug-options\n","_attachments":{},"homepage":"https://github.com/rehypejs/rehype-slug#readme","bugs":{"url":"https://github.com/rehypejs/rehype-slug/issues"},"license":"MIT"}