{"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","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-1","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","dist":{"integrity":"sha512-vGBBTeI5NdvJHjmwKWy7u3F8lgrdthCjjP/v434j1ri1xhsyE7kZxIYIXm3MjaOPmkLSHYE3HFpuGfdmhXKw5A==","shasum":"7cbf4a764cb5a6a3643bd8715df87934b663a19e","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-2.0.0-canary-1.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\nwsFcBAEBCAAQBQJeyv5hCRA9TVsSAnZWagAApsIP/jy0O4DmWBwzcFzgCLbN\nU4bN/8JMNz55iZHT27d1AnHpp9yB7gxSnehePOULZOeTm4WPJs/GD+fZAwAU\nMUqfOitc1wpOlomA+hl7EMjpNs8dZGBBTXbq4MAHYC3w/Bw0btXdkiZW1CSz\n5Cs2jhJ0h8D92XGKF4gkTION4pKb0ObA7eFpJWrafS/t0SS4FHqbrEiCUTO2\noARV//vl8nTo7OUaRImIRehs4QduGDOzTmXJhXpRkUGPwQjJngoG6qbhAaZo\ngEXHBRE6dM3pNfVHjHXBCri7Y9vSq8QP54hrXVX6EVLyubfB9fhevArGj25k\nTO00xCGQUAsuX0tDWlkjgmvv09Al5DSW3YeqBdEJ1xpYornM++hOsJ9FX839\n24YIwPJvxnToGPPSuTV0jIa0SRFWw5ySNu2eQ6ggPto/YGkrRqZhwdCY84em\nzTKCUKA1RYk2A28+V5+/zLTiTVuUA5xfep+hOK17CRtagcTO5BrFCrcHWcBH\nKaMk/1hbZ8l7jsMZSlDDSpG3GsU8xOzQre5RDCsnnkAZo9KY3SkWBpyNzJ8/\n//+4OgVAp2BEKVi2fU2cLrkvZUP5dmEritiIeRtAYqX1PoXNxxHkQ5y21zw1\nn4rbIJvhwEyUmgQ6u8uf3T71RNGv0gk9y6+AsZJbUb2bDkuTSPr759XD05Lw\nKkH6\r\n=UQpl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBjS7k5tW8AMkg/vyXDJ8/JAiBqfyC1AUPuTKoRCb8FQAiAmDWsHc6tiACaYFouYy0KXZeX2Ju59pX7D1bJgi+pj/A=="}],"size":2463,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-2.0.0-canary-1.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-1_1590361697090_0.020699940430226604"},"_hasShrinkwrap":false,"publish_time":1590361697196,"_cnpm_publish_time":1590361697196,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}