{"name":"pug-strip-comments","version":"0.0.1","description":"Strip comments from a Jade token stream (from the lexer)","keywords":["jade","pug"],"dependencies":{"pug-error":"^0.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":"https://github.com/jadejs/jade-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","gitHead":"303016e3f1e51a39e8470e60ea69a60a923af809","bugs":{"url":"https://github.com/jadejs/jade-strip-comments/issues"},"homepage":"https://github.com/jadejs/jade-strip-comments","_id":"pug-strip-comments@0.0.1","_shasum":"ac346bb773d82492bf922dae2d4681a20cf0638f","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"ac346bb773d82492bf922dae2d4681a20cf0638f","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-0.0.1.tgz","integrity":"sha512-jipFzzHNg9HWz3UQRk8XeYV/1sTBkiAdC6oBfRDKTfQPHSVJtaFBkDKb7fbujliaMwm6YToQ1Dsl0bbpw9GhMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID95XdEFrSGAWNVZId4i2ViMsV2WqgIDKugDUAV46YqXAiBBSwlqsNzMKVouHyX4B1NLD9lu3HV4n4BbCso3DuJRAA=="}],"size":7158,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-0.0.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"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":1449882286114,"_cnpm_publish_time":1449882286114,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}