{"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":{"integrity":"sha512-zo8DsDpH7eTkPHCXFeAk1xZXJbyoTfdPlNR0bK7rpOMuhBYb0f5qUVCO1xlsitYd3w5FQTK7zpNVKb3rZoUrrQ==","shasum":"f94b07fd6b495523330f490a7f554b4ff876303e","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-2.0.0.tgz","fileCount":5,"unpackedSize":5946,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey7fqCRA9TVsSAnZWagAANE8P/iDIb8sWLlPH3xlpNK6g\nOqHKnOFBiTW9WYLQqO0Ts8S6UmrTnA8wPFFf2Q9pZH5AktUfM08Wuu11cpMV\nabx4uzsaqYHm+hlY026HK/WrD7hWvaWemmZ6So8tjemVKWjFWF3W53IPym16\n8BM0UPcD5XW931se35dUK07Hmny3r7eQJmlzsGc15cEEQNOsXAlRBrOVkYUd\naxl5EL4B9rLgRoSfcsDBT3kmqP0SZ4Pe4qMhmN/pezw3azI2+7cE0Xas7qY+\nJwlH9kV1ZmcF02cfpLGNzKxp/6csRqu95we2bEyq29Gt9WOUf38oNZnSmnjZ\nsdvSPJO1kVyHVKqJwBc5b+gVPRJeb5/LIwNAuzFz8tAYfTaTn2+FAI0alMuw\nd43LO5vP5uuJKOKU3Oc4X4oDv1v1V+70LLAOVEqmjA0dW9ihiEahFoZNUVYM\nWU5blHdy67BUIcpqO3YHNQLOUOPzt1Fl69GpTr4yDkF2nWyY6E6c0cnAYc9b\nuP2WFv7VXu/QSag4a1pMZFWQ7gb/ogUQzlhMr0aizK46tEapLgO9yj7Lq2IW\nw2jlUufe41SRy4tIqArT7JXALu2sqD03seM8+TDnO3TosRlv1IzdN6oDf9/b\nQHUcPR9bThVlnJizSF63BQRO6ZsvyJJaj9Iu6q1N1l6AIwNIMu10xlRCMZK6\ncjO8\r\n=WiIA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrG1MAotwiLZdUKEPTgdUClDHspDtvMSwhnhs1LoEzEAIgQSbfbARlim+XRaRLr2WSWRcQcgCL+p89L7tcdVlyRxI="}],"size":2445,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0.tgz"},"maintainers":[{"email":"forbes@lindesay.co.uk","name":"forbeslindesay"},{"email":"pug-bot@rollingversions.com","name":"pug-bot"},{"email":"timothygu99@gmail.com","name":"timothygu"}],"_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,"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":1590409194211,"_cnpm_publish_time":1590409194211,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}