{"_id":"pug-strip-comments","_rev":"76707","name":"pug-strip-comments","description":"Strip comments from a Pug token stream (from the lexer)","dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"time":{"modified":"2021-06-03T10:24:43.000Z","created":"2015-12-04T13:32:01.643Z","2.0.0":"2020-05-25T12:19:54.211Z","2.0.0-canary-2":"2020-05-25T12:19:17.695Z","2.0.0-canary-1":"2020-05-24T23:08:17.196Z","1.0.4":"2019-06-18T09:45:07.166Z","1.0.3":"2018-03-06T13:12:27.091Z","1.0.2":"2017-01-24T01:07:20.383Z","1.0.1":"2016-08-10T04:49:15.057Z","0.0.1":"2015-12-12T01:04:46.114Z","0.0.0":"2015-12-04T13:32:01.643Z"},"users":{},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-strip-comments"},"versions":{"2.0.0":{"name":"pug-strip-comments","version":"2.0.0","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^2.0.0"},"devDependencies":{"line-json":"^2.0.0"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-strip-comments"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","_id":"pug-strip-comments@2.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"f94b07fd6b495523330f490a7f554b4ff876303e","size":2445,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-2.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_2.0.0_1590409194021_0.21845698188928164"},"_hasShrinkwrap":false,"publish_time":1590409194211,"_cnpm_publish_time":1590409194211},"2.0.0-canary-2":{"name":"pug-strip-comments","version":"2.0.0-canary-2","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"2.0.0-canary-2"},"devDependencies":{"line-json":"^2.0.0"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-strip-comments"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"pug-strip-comments@2.0.0-canary-2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"bb5e76283651c83d236f882586277c094eb3956e","size":2463,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0-canary-2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-2.0.0-canary-2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_2.0.0-canary-2_1590409157475_0.15346219143545214"},"_hasShrinkwrap":false,"publish_time":1590409157695,"_cnpm_publish_time":1590409157695},"2.0.0-canary-1":{"name":"pug-strip-comments","version":"2.0.0-canary-1","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"2.0.0-canary-1"},"devDependencies":{"line-json":"^2.0.0"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-strip-comments"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","readmeFilename":"README.md","_id":"pug-strip-comments@2.0.0-canary-1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"shasum":"7cbf4a764cb5a6a3643bd8715df87934b663a19e","size":2463,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0-canary-1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-2.0.0-canary-1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"pug-bot","email":"pug-bot@rollingversions.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_2.0.0-canary-1_1590361697090_0.020699940430226604"},"_hasShrinkwrap":false,"publish_time":1590361697196,"_cnpm_publish_time":1590361697196},"1.0.4":{"name":"pug-strip-comments","version":"1.0.4","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^1.3.3"},"devDependencies":{"line-json":"^1.0.0"},"repository":{"type":"git","url":"https://github.com/pugjs/pug/tree/master/packages/pug-strip-comments"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"1bdf628a70fda7a0d840c52f3abce54b1c6b0130","_id":"pug-strip-comments@1.0.4","_nodeVersion":"11.14.0","_npmVersion":"lerna/3.10.8/node@v11.14.0+x64 (darwin)","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"cc1b6de1f6e8f5931cf02ec66cdffd3f50eaf8a8","size":2506,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-1.0.4.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_1.0.4_1560851107039_0.55028646913087"},"_hasShrinkwrap":false,"publish_time":1560851107166,"_cnpm_publish_time":1560851107166},"1.0.3":{"name":"pug-strip-comments","version":"1.0.3","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^1.3.2"},"devDependencies":{"line-json":"^1.0.0"},"repository":{"type":"git","url":"https://github.com/pugjs/pug-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","licenseText":"Copyright (c) 2015 Tiancheng “Timothy” Gu\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"pug-strip-comments@1.0.3","dist":{"shasum":"f1559592206edc6f85310dacf4afb48a025af59f","size":4947,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-1.0.3.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_1.0.3_1520341947043_0.3428202958111648"},"_hasShrinkwrap":false,"publish_time":1520341947091,"_cnpm_publish_time":1520341947091},"1.0.2":{"name":"pug-strip-comments","version":"1.0.2","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^1.3.2"},"devDependencies":{"line-json":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/pugjs/pug-strip-comments/issues"},"homepage":"https://github.com/pugjs/pug-strip-comments#readme","_id":"pug-strip-comments@1.0.2","scripts":{},"_shasum":"d313afa01bcc374980e1399e23ebf2eb9bdc8513","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"dist":{"shasum":"d313afa01bcc374980e1399e23ebf2eb9bdc8513","size":4873,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-strip-comments-1.0.2.tgz_1485220038374_0.5095063515473157"},"directories":{},"publish_time":1485220040383,"_cnpm_publish_time":1485220040383,"_hasShrinkwrap":false},"1.0.1":{"name":"pug-strip-comments","version":"1.0.1","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^1.0.0"},"devDependencies":{"istanbul":"^0.3.2","line-json":"^1.0.0","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"8ea7c1d2083d6c683d1e8e7b4dbd5c43956ed9f1","bugs":{"url":"https://github.com/pugjs/pug-strip-comments/issues"},"homepage":"https://github.com/pugjs/pug-strip-comments#readme","_id":"pug-strip-comments@1.0.1","_shasum":"89695921a34fcf56855d4302b426686b426bafd1","_from":".","_npmVersion":"3.10.5","_nodeVersion":"6.3.1","_npmUser":{"name":"timothygu","email":"timothygu99@gmail.com"},"dist":{"shasum":"89695921a34fcf56855d4302b426686b426bafd1","size":4974,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-1.0.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-strip-comments-1.0.1.tgz_1470804550938_0.5287150705698878"},"directories":{},"publish_time":1470804555057,"_cnpm_publish_time":1470804555057,"_hasShrinkwrap":false},"0.0.1":{"name":"pug-strip-comments","version":"0.0.1","description":"Strip comments from a Jade token stream (from the lexer)","keywords":["jade","pug"],"dependencies":{"pug-error":"^0.0.0"},"devDependencies":{"istanbul":"^0.3.2","line-json":"^1.0.0","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test"},"repository":{"type":"git","url":"https://github.com/jadejs/jade-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"303016e3f1e51a39e8470e60ea69a60a923af809","bugs":{"url":"https://github.com/jadejs/jade-strip-comments/issues"},"homepage":"https://github.com/jadejs/jade-strip-comments","_id":"pug-strip-comments@0.0.1","_shasum":"ac346bb773d82492bf922dae2d4681a20cf0638f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"ac346bb773d82492bf922dae2d4681a20cf0638f","size":7158,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-0.0.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"publish_time":1449882286114,"_cnpm_publish_time":1449882286114,"_hasShrinkwrap":false},"0.0.0":{"name":"pug-strip-comments","version":"0.0.0","description":"Strip comments from a Jade token stream (from the lexer)","keywords":["jade","pug"],"dependencies":{"pug-error":"^0.0.0"},"devDependencies":{"istanbul":"^0.3.2","line-json":"^1.0.0","testit":"^2.0.2"},"scripts":{"test":"node test && npm run coverage","coverage":"istanbul cover test"},"repository":{"type":"git","url":"https://github.com/jadejs/jade-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"303016e3f1e51a39e8470e60ea69a60a923af809","bugs":{"url":"https://github.com/jadejs/jade-strip-comments/issues"},"homepage":"https://github.com/jadejs/jade-strip-comments","_id":"pug-strip-comments@0.0.0","_shasum":"f96807e122ea579f20bb5e4140b67230c5a36999","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"f96807e122ea579f20bb5e4140b67230c5a36999","size":7130,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pug-strip-comments/download/pug-strip-comments-0.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"pug-bot","email":""}],"directories":{},"publish_time":1449235921643,"_cnpm_publish_time":1449235921643,"_hasShrinkwrap":false}},"readme":"# pug-strip-comments\n\nStrips comments from Pug token stream\n\n[![Build Status](https://img.shields.io/travis/pugjs/pug-strip-comments/master.svg)](https://travis-ci.org/pugjs/pug-strip-comments)\n[![Dependencies Status](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-strip-comments)](https://david-dm.org/pugjs/pug?path=packages/pug-strip-comments)\n[![DevDependencies Status](https://david-dm.org/pugjs/pug/dev-status.svg?path=packages/pug-strip-comments)](https://david-dm.org/pugjs/pug?path=packages/pug-strip-comments&type=dev)\n[![NPM version](https://img.shields.io/npm/v/pug-strip-comments.svg)](https://www.npmjs.org/package/pug-strip-comments)\n\n## Installation\n\n    npm install pug-strip-comments\n\n## Usage\n\n```js\nvar lex = require('pug-lexer');\nvar stripComments = require('pug-strip-comments');\n\nvar tokens = lex('//- unbuffered\\n// buffered');\n// [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false },\n//   { type: 'newline', line: 2 },\n//   { type: 'comment', line: 2, val: ' buffered', buffer: true },\n//   { type: 'eos', line: 2 } ]\n\n// Only strip unbuffered comments (default)\nstripComments(tokens, { filename: 'pug' });\n// [ { type: 'newline', line: 2 },\n//   { type: 'comment', line: 2, val: ' buffered', buffer: true },\n//   { type: 'eos', line: 2 } ]\n\n// Only strip buffered comments (when you want to play a joke on your coworkers)\nstripComments(tokens, { filename: 'pug', stripUnbuffered: false, stripBuffered: true });\n// [ { type: 'comment', line: 1, val: ' unbuffered', buffer: false },\n//   { type: 'newline', line: 2 },\n//   { type: 'eos', line: 2 } ]\n\n// Strip both (if you want Pug VERY clean)\nstripComments(tokens, { filename: 'pug', stripBuffered: true });\n// [ { type: 'newline', line: 2 },\n//   { type: 'eos', line: 2 } ]\n```\n\n## License\n\nMIT\n","_attachments":{},"license":"MIT"}