{"_id":"rehype-remove-comments","_rev":"4423195","name":"rehype-remove-comments","description":"rehype plugin to remove comments (except conditional comments)","dist-tags":{"latest":"6.1.1"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2026-04-08T13:47:47.000Z","created":"2016-09-08T13:13:28.957Z","6.1.1":"2024-09-27T11:50:40.033Z","6.1.0":"2024-09-17T10:38:45.517Z","6.0.0":"2023-08-30T15:21:15.081Z","5.0.0":"2021-08-01T19:07:04.235Z","4.0.2":"2020-07-02T11:13:59.488Z","4.0.1":"2020-03-21T18:29:28.122Z","4.0.0":"2020-03-21T18:23:58.422Z","3.0.0":"2019-09-10T10:20:15.531Z","2.0.2":"2019-06-01T13:42:17.809Z","2.0.1":"2018-07-18T20:31:17.898Z","2.0.0":"2017-02-24T10:49:00.095Z","1.0.0":"2016-09-08T13:13:28.957Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"versions":{"6.1.1":{"name":"rehype-remove-comments","version":"6.1.1","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["comment","html","mangle","minify","plugin","rehype","rehype-plugin","unified"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0","hast-util-is-conditional-comment":"^3.0.0","unist-util-visit":"^5.0.0"},"scripts":{},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true,"rules":{"capitalized-comments":"off"}},"_id":"rehype-remove-comments@6.1.1","gitHead":"79383ba769010ff52c547c57850d2dd3ecb815a9","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.3","dist":{"shasum":"353f3c5e7f00f384f5c1648b271bffe4f396a61d","size":4579,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-6.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-6.1.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-remove-comments_6.1.1_1727437839864_0.13798176784373584"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-27T11:50:40.033Z","publish_time":1727437840033,"_source_registry_name":"default","_cnpm_publish_time":1727437840033},"6.1.0":{"name":"rehype-remove-comments","version":"6.1.0","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["comment","html","mangle","minify","plugin","rehype","rehype-plugin","unified"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0","hast-util-is-conditional-comment":"^3.0.0","unist-util-visit":"^5.0.0"},"scripts":{},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"prettier":true,"rules":{"capitalized-comments":"off"}},"_id":"rehype-remove-comments@6.1.0","gitHead":"aeddee20efd1251826476d061257fb6ccd3c3765","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_nodeVersion":"22.7.0","_npmVersion":"10.8.3","dist":{"shasum":"78f44339ea140ca671d5872a717698d15663767b","size":3903,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-6.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-6.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-remove-comments_6.1.0_1726569525365_0.5213061338892806"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-17T10:38:45.517Z","publish_time":1726569525517,"_source_registry_name":"default","_cnpm_publish_time":1726569525517},"6.0.0":{"name":"rehype-remove-comments","version":"6.0.0","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["comment","html","mangle","minify","plugin","rehype","rehype-plugin","unified"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/hast":"^3.0.0","hast-util-is-conditional-comment":"^3.0.0","unist-util-visit":"^5.0.0"},"scripts":{},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":false,"_id":"rehype-remove-comments@6.0.0","gitHead":"142a16cf75ea59ab9a32b1a38e02cc42cdca3f6d","types":"./index.d.ts","homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"fc0b5cc61aa1714bab95dede8d50e4f664c04ce8","size":3352,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-6.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-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-remove-comments_6.0.0_1693408874889_0.004204740150864916"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-30T15:21:15.081Z","publish_time":1693408875081,"_source_registry_name":"default","_cnpm_publish_time":1693408875081},"5.0.0":{"name":"rehype-remove-comments","version":"5.0.0","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","comment"],"repository":{"type":"git","url":"git+https://github.com/rehypejs/rehype-minify.git#main"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/hast":"^2.0.0","hast-util-is-conditional-comment":"^2.0.0","unified":"^10.0.0","unist-util-filter":"^4.0.0"},"scripts":{"build":"rimraf \"*.d.ts\" && tsc && type-coverage","test":"node --conditions development test.js"},"xo":false,"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","_id":"rehype-remove-comments@5.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"88b4faba10f217d4ab68b36eb958b386630d5672","size":2457,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-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-remove-comments_5.0.0_1627844824132_0.76241003876323"},"_hasShrinkwrap":false,"publish_time":1627844824235,"_cnpm_publish_time":1627844824235,"_cnpmcore_publish_time":"2021-12-17T11:44:09.566Z"},"4.0.2":{"name":"rehype-remove-comments","version":"4.0.2","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","comment"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/main/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"dependencies":{"unist-util-filter":"^2.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@4.0.2","_nodeVersion":"14.0.0","_npmVersion":"6.14.5","dist":{"shasum":"08487a5d85cb7b6a2571d7226176420c6c519a27","size":1545,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-4.0.2.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-remove-comments_4.0.2_1593688439364_0.6113972502141791"},"_hasShrinkwrap":false,"publish_time":1593688439488,"_cnpm_publish_time":1593688439488,"_cnpmcore_publish_time":"2021-12-17T11:44:09.758Z"},"4.0.1":{"name":"rehype-remove-comments","version":"4.0.1","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","comment"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"dependencies":{"unist-util-filter":"^2.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@4.0.1","_nodeVersion":"13.10.1","_npmVersion":"6.14.3","dist":{"shasum":"a96da674bad0edafca41f645705efa37cab0e84b","size":1547,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-4.0.1.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-remove-comments_4.0.1_1584815368008_0.7773368092293167"},"_hasShrinkwrap":false,"publish_time":1584815368122,"_cnpm_publish_time":1584815368122,"_cnpmcore_publish_time":"2021-12-17T11:44:10.003Z"},"4.0.0":{"name":"rehype-remove-comments","version":"4.0.0","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","rehype-plugin","plugin","html","minify","mangle","comment"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/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"}],"dependencies":{"unist-util-filter":"^2.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@4.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.3","dist":{"shasum":"4d1c02cb69cb96caf0b5c5abd3fa19ffdbc09706","size":1546,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-4.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-remove-comments_4.0.0_1584815038310_0.3068355602195172"},"_hasShrinkwrap":false,"publish_time":1584815038422,"_cnpm_publish_time":1584815038422,"_cnpmcore_publish_time":"2021-12-17T11:44:10.282Z"},"3.0.0":{"name":"rehype-remove-comments","version":"3.0.0","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","hast","javascript","src"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"unist-util-filter":"^1.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@3.0.0","_nodeVersion":"12.2.0","_npmVersion":"6.11.2","dist":{"shasum":"eb93a832c7b94e45d5a3faba2583de6384ac8043","size":1523,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-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-remove-comments_3.0.0_1568110815367_0.05113961845428738"},"_hasShrinkwrap":false,"publish_time":1568110815531,"_cnpm_publish_time":1568110815531,"_cnpmcore_publish_time":"2021-12-17T11:44:10.507Z"},"2.0.2":{"name":"rehype-remove-comments","version":"2.0.2","description":"rehype plugin to remove comments (except conditional comments)","license":"MIT","keywords":["unified","rehype","hast","javascript","src"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"dependencies":{"unist-util-filter":"^1.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@2.0.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"9a3b0bf5ba6854f16adbdb6f05e3f9757fb928d5","size":1520,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-2.0.2.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-remove-comments_2.0.2_1559396537693_0.3208249820091238"},"_hasShrinkwrap":false,"publish_time":1559396537809,"_cnpm_publish_time":1559396537809,"_cnpmcore_publish_time":"2021-12-17T11:44:10.772Z"},"2.0.1":{"name":"rehype-remove-comments","version":"2.0.1","description":"Remove comments (except conditional comments)","license":"MIT","keywords":["rehype","hast","javascript","src"],"repository":{"type":"git","url":"https://github.com/rehypejs/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"files":["index.js"],"dependencies":{"unist-util-filter":"^1.0.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@2.0.1","_npmVersion":"6.2.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"2d0bbdac9053a9202672fe43b03435526f8cf4e0","size":959,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-2.0.1.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-remove-comments_2.0.1_1531945877824_0.7701368978117067"},"_hasShrinkwrap":false,"publish_time":1531945877898,"_cnpm_publish_time":1531945877898,"_cnpmcore_publish_time":"2021-12-17T11:44:11.009Z"},"2.0.0":{"name":"rehype-remove-comments","version":"2.0.0","description":"Remove comments (except conditional comments)","license":"MIT","keywords":["rehype","hast","javascript","src"],"repository":{"type":"git","url":"https://github.com/wooorm/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"files":["index.js"],"dependencies":{"unist-util-filter":"^0.2.0","hast-util-is-conditional-comment":"^1.0.0"},"xo":false,"_id":"rehype-remove-comments@2.0.0","scripts":{},"_shasum":"7fd6e94df926fb7f4c24fe8cd8804471c7b936ed","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"7fd6e94df926fb7f4c24fe8cd8804471c7b936ed","size":979,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-2.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-remove-comments-2.0.0.tgz_1487933338183_0.8346502017229795"},"directories":{},"publish_time":1487933340095,"_hasShrinkwrap":false,"_cnpm_publish_time":1487933340095,"_cnpmcore_publish_time":"2021-12-17T11:44:11.215Z"},"1.0.0":{"name":"rehype-remove-comments","version":"1.0.0","description":"Remove comments (except conditional comments)","license":"MIT","keywords":["rehype","hast","javascript","src"],"repository":{"type":"git","url":"https://github.com/wooorm/rehype-minify/tree/master/packages/rehype-remove-comments"},"bugs":{"url":"https://github.com/wooorm/rehype-minify/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com"}],"files":["index.js"],"dependencies":{"unist-util-filter":"^0.2.0","hast-util-is-conditional-comment":"^1.0.0"},"_id":"rehype-remove-comments@1.0.0","scripts":{},"_shasum":"e63f65f5f5934a2f74056c69ffc842b7b1cc9266","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"e63f65f5f5934a2f74056c69ffc842b7b1cc9266","size":982,"noattachment":false,"key":"/rehype-remove-comments/-/rehype-remove-comments-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rehype-remove-comments/download/rehype-remove-comments-1.0.0.tgz"},"maintainers":[{"name":"kmck","email":"keith@mcknig.ht"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rehype-remove-comments-1.0.0.tgz_1473340407383_0.08291658107191324"},"directories":{},"publish_time":1473340408957,"_hasShrinkwrap":false,"_cnpm_publish_time":1473340408957,"_cnpmcore_publish_time":"2021-12-17T11:44:11.522Z"}},"readme":"<!--This file is generated-->\n\n# rehype-remove-comments\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][funding-sponsors-badge]][funding]\n[![Backers][funding-backers-badge]][funding]\n[![Chat][chat-badge]][chat]\n\n**[rehype][]** plugin to remove comments.\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(rehypeRemoveComments[, options])`](#unifieduserehyperemovecomments-options)\n  * [`Options`](#options)\n  * [`Test`](#test)\n* [Example](#example)\n* [Syntax](#syntax)\n* [Syntax tree](#syntax-tree)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package is a plugin that removes comments.\nBy default it keeps conditional comments, optionally it removes them too.\n\n## When should I use this?\n\nYou can use this plugin when you want to improve the transfer size of HTML\ndocuments.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install rehype-remove-comments\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport rehypeRemoveComments from 'https://esm.sh/rehype-remove-comments@6'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import rehypeRemoveComments from 'https://esm.sh/rehype-remove-comments@6?bundle'\n</script>\n```\n\n## Use\n\nOn the API:\n\n```js\nimport rehypeParse from 'rehype-parse'\nimport rehypeRemoveComments from 'rehype-remove-comments'\nimport rehypeStringify from 'rehype-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\n\nconst file = await unified()\n  .use(rehypeParse)\n  .use(rehypeRemoveComments)\n  .use(rehypeStringify)\n  .process(await read('index.html'))\n\nconsole.log(String(file))\n```\n\nOn the CLI:\n\n```sh\nrehype input.html --use rehype-remove-comments --output output.html\n```\n\nOn the CLI in a config file (here a `package.json`):\n\n```diff\n …\n \"rehype\": {\n   \"plugins\": [\n     …\n+    \"rehype-remove-comments\",\n     …\n   ]\n }\n …\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is `rehypeRemoveComments`.\n\n### `unified().use(rehypeRemoveComments[, options])`\n\nRemove comments.\n\n###### Parameters\n\n* `options` (`Options`, optional)\n  — configuration\n\n###### Returns\n\nTransform ([`Transformer`](https://github.com/unifiedjs/unified#transformer)).\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n* `removeConditional` (`boolean`, default: `false`)\n  — remove conditional comments (default: `false`); the default is to\n  leave them\n* `test` (`Test`, optional)\n  — choose which comments to keep (optional)\n\n### `Test`\n\nTest a comment (TypeScript type).\n\n###### Parameters\n\n* `value` (`string`)\n  — comment value\n\n###### Returns\n\nWhether to keep the comment (`boolean`, optional).\n\n## Example\n\n###### In\n\n```html\n<!--Hello-->\n<!--[if IE 6]>OK<![endif]-->\n```\n\n###### Out\n\n```html\n<!--[if IE 6]>OK<![endif]-->\n```\n\n## Syntax\n\nHTML is parsed according to WHATWG HTML (the living standard), which is also\nfollowed by all browsers.\n\n## Syntax tree\n\nThe syntax tree used is [hast][].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\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,\n`rehype-remove-comments@^6`,\ncompatible with Node.js 16.\n\n## Security\n\nAs **rehype** works on HTML and improper use of HTML can open you up to a\n[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.\nUse [`rehype-sanitize`][rehype-sanitize] to make the tree safe.\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[author]: https://wooorm.com\n\n[build]: https://github.com/rehypejs/rehype-minify/actions\n\n[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg\n\n[chat]: https://github.com/rehypejs/rehype/discussions\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md\n\n[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md\n\n[coverage]: https://codecov.io/github/rehypejs/rehype-minify\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg\n\n[downloads]: https://www.npmjs.com/package/rehype-remove-comments\n\n[downloads-badge]: https://img.shields.io/npm/dm/rehype-remove-comments.svg\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esm-sh]: https://esm.sh\n\n[funding]: https://opencollective.com/unified\n\n[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[hast]: https://github.com/syntax-tree/hast\n\n[health]: https://github.com/rehypejs/.github\n\n[license]: https://github.com/rehypejs/rehype-minify/blob/main/license\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize\n\n[size]: https://bundlejs.com/?q=rehype-remove-comments\n\n[size-badge]: https://img.shields.io/bundlejs/size/rehype-remove-comments\n\n[support]: https://github.com/rehypejs/.github/blob/main/support.md\n\n[typescript]: https://www.typescriptlang.org\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n","_attachments":{},"homepage":"https://github.com/rehypejs/rehype-minify/tree/main#readme","bugs":{"url":"https://github.com/rehypejs/rehype-minify/issues"},"license":"MIT"}