{"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":{"integrity":"sha512-i5j/9CS4yFhSxHp5iKPHwigaig/VV9g+FgReLJWWHEHbvKsbqL0oP/K5ubuLco6Wu3Kan5p7u7qk8A4oLLh6vw==","shasum":"cc1b6de1f6e8f5931cf02ec66cdffd3f50eaf8a8","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-1.0.4.tgz","fileCount":5,"unpackedSize":5935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCLKjCRA9TVsSAnZWagAAlJEP/RV/TWX4pOn19pCWGfJ3\nwxOrtRruXZWdJ1/Cmvs0z2mtOLMrGGKnDHdK4KR2BKh5rAO5PZSOQx2XBWe/\npfuLpo03URmfqJomni/42sbNF5SCyr1Aendpy7t8/SSFqz5ZDPWysF0bM7SY\nhvYKLbdShYkTZDIadQIQwED6UOuG4PWgUgINGsrj29xU83r79p5VVUg0zjIW\ngXPvmvFlNmf9Xxx/xoq70BTBZY7mdVxShaOr6OgvCbvJueR5po7FRHhYe3A7\nGkZscdXkBsUtZJu8hKiWInkQsttf0Tuhe41z2Hs1Y+2qBiiD/Wy3qqkbvQym\n9Je3l/sxOYRExJh+QQCJ5oQqJUTpGlOoyO7X1fG6KRticfSmUWbOp8HhFbav\niFF/PrwlUBuXssrOeq+v2S4SurBdvklptdZZ9f/JoDRmkpiv4K0RbSaWLuY1\ntsJ65xiVWJhk4W1O4pyuqKMuRoRxzRSUhn4jJJuVLV4zuZq/zWuVgwyI2t2E\nvfAykbLZWUVbivC8tH/YVAY9ajXioRmo2IblK7b4O3wS/N/yRdYCyQq0D4eU\nizA5bDv0x2kG4wQaVpFYwlMjSoFaYeHztJcjgnQ3VDOgz3E5xnoJQLQPJJaI\nMiVVHIMQohCzqkmqKGp+cx5ZCB8V1km3rnmUWtzrbRaMRbmIsOcgcTSkGx4s\n5/t+\r\n=Pd62\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDn+9CLOyGFL7Xtg6vOs3rjIevAzoDVcdIv/2d6vTO/pgIgYusW/Uy+fXIMFiYIpnAOF3afCDjlDuJFr28D21NM9qY="}],"size":2506,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.4.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pug-strip-comments_1.0.4_1560851107039_0.55028646913087"},"_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","publish_time":1560851107166,"_cnpm_publish_time":1560851107166,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}