{"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","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","readmeFilename":"README.md","_id":"pug-strip-comments@2.0.0-canary-2","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-QV5N+fIOoBUhIV8u1a7KpRrW5mUqrVLTJUiHDDVVZGkoj+5V42TSw7L50ljb8XqqeDdFjKHBRMsPGP8Op8blNw==","shasum":"bb5e76283651c83d236f882586277c094eb3956e","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-2.0.0-canary-2.tgz","fileCount":5,"unpackedSize":5963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJey7fFCRA9TVsSAnZWagAAlcoQAJaLFah0pmp0lqFvfw6w\n7bDFZUasIkGHLzs6uK6BkcPqIsNvgFFQgaNIEwQ2+eRDM4xNErcSvRNQ/P2i\nSYCWc5EkoRfD83yp86a6Uw02uj5F6SGMA3ffj5j2FhLpCMyNEZaj21Uz8iRi\nc3veO54ygwVVpvHtWekGx7OxKKThWuY3saZ8mmY9P9CEfa+bOwN9o6nQoCjF\nKedxbEsNY2usI9rBPmXlAlsSUqNXmE3+4ilAiikjEooZYEoV3DLvxXMhVVX4\nw9oayTfTQwaV+HCeumIpllPHCIwKuPnfv9eP118QpOInpdlaEya1S1onF6l3\nhGA775+CmMv//4F7yTbt1DUm88nc9v22RUkT4oPeKOjg9tBNXmMPn76m35W0\nDsrZyRCQY+TxeUeBwxqVJeo1VTXQ3TEvMV+2HhPFsXLWlA/xKsnSnDQw6yWU\nv1ZT1Th0QA8xCRQk9waFnaDlj6n+QnzNI+nN7nWEnpiiqcOQfov/wRI8WVFM\nKRElYrZ98ZHr6H0VptH2uoYoHRrTDX6RHT8eBliHO5l90LDkw5AdytHM8AEP\nqp8H7qmonhb6la1k1rK8ClenJZgT4GXaKkYUeX9g8IZE23uEbjhCFESPCQLu\nK+LZDzkbhyuY4sKuSWLQKZbkJjZP6KfJES02Q8V3WuR6Ztn9UXjx9IwEvwDo\nnVjB\r\n=QzZt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEG80hPdUf1QiL5OZkOvnXc9873F5rngEDg6IOXT5oFoAiEA3xyB46iZSVo9q4z8s4jLR7DpNbb9N50DtRz/7FUboeY="}],"size":2463,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0-canary-2.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-canary-2_1590409157475_0.15346219143545214"},"_hasShrinkwrap":false,"publish_time":1590409157695,"_cnpm_publish_time":1590409157695,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}