{"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","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-1.0.1.tgz","integrity":"sha512-40VjwzkwVPKM82+jOHo1sp/c/T8MvpAAr/H9fmVMfMQ8xVayAYN5eQpMzBiRhnxvnfYZmct2qJsXlcJ0FyOhCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4zmT2viAabHCwijDSwYoGIebPFQ2eDXxXYEpNUA+6HAiEAuYRxmzu7d50MRjdTlFYAjZwMlKs0oHCPn3rERlvmMb4="}],"size":4974,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/pug-strip-comments-1.0.1.tgz_1470804550938_0.5287150705698878"},"directories":{},"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":1470804555057,"_cnpm_publish_time":1470804555057,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}