{"name":"pug-strip-comments","version":"1.0.2","description":"Strip comments from a Pug token stream (from the lexer)","keywords":["pug"],"dependencies":{"pug-error":"^1.3.2"},"devDependencies":{"line-json":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/pugjs/pug-strip-comments.git"},"author":{"name":"Timothy Gu","email":"timothygu99@gmail.com"},"license":"MIT","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.2","scripts":{},"_shasum":"d313afa01bcc374980e1399e23ebf2eb9bdc8513","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"d313afa01bcc374980e1399e23ebf2eb9bdc8513","tarball":"http://registry-npm.ywwl.com/pug-strip-comments/download/pug-strip-comments-1.0.2.tgz","integrity":"sha512-2cTz0arst0am/YaH8sCnvrbbaBMTmC4grFI+FyIU3pxYc7EaEvPd1Wk6+mwlsfb9mluojZZfQ5e5j+k30/L5EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkcRu62Hye6bKp2RuGqdvFuCXvowpQco6VIvlYcSPejAiEAn2LNpjYQh1DCZspHFgNvCr/5t96j6sZwYSKzPdots7w="}],"size":4873,"noattachment":false,"key":"/pug-strip-comments/-/pug-strip-comments-1.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pug-strip-comments-1.0.2.tgz_1485220038374_0.5095063515473157"},"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":1485220040383,"_cnpm_publish_time":1485220040383,"dist-tags":{"canary":"2.0.0-canary-2","latest":"2.0.0"}}