{
  "_args": [
    [
      "postcss-discard-comments@https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
      "/Users/nw/flint/packages/flint"
    ]
  ],
  "_from": "postcss-discard-comments@>=2.0.2 <3.0.0",
  "_id": "postcss-discard-comments@2.0.3",
  "_inCache": true,
  "_location": "/postcss-discard-comments",
  "_phantomChildren": {},
  "_requested": {
    "name": "postcss-discard-comments",
    "raw": "postcss-discard-comments@https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
    "rawSpec": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
    "scope": null,
    "spec": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
    "type": "remote"
  },
  "_requiredBy": [
    "/cssnano"
  ],
  "_resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
  "_shasum": "59797a51747e05e2bec208f22d635a6983068b04",
  "_shrinkwrap": null,
  "_spec": "postcss-discard-comments@https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.3.tgz",
  "_where": "/Users/nw/flint/packages/flint",
  "author": {
    "email": "beneb.info@gmail.com",
    "name": "Ben Briggs",
    "url": "http://beneb.info"
  },
  "bugs": {
    "url": "https://github.com/ben-eb/postcss-discard-comments/issues"
  },
  "dependencies": {
    "postcss": "^5.0.8"
  },
  "description": "Discard comments in your CSS files with PostCSS.",
  "devDependencies": {
    "postcss-scss": "^0.1.2",
    "postcss-simple-vars": "^1.0.1",
    "tap-spec": "^4.1.0",
    "tape": "^4.2.1"
  },
  "files": [
    "LICENSE-MIT",
    "index.js",
    "lib"
  ],
  "homepage": "https://github.com/ben-eb/postcss-discard-comments",
  "keywords": [
    "comments",
    "css",
    "postcss",
    "postcss-plugin"
  ],
  "license": "MIT",
  "main": "index.js",
  "name": "postcss-discard-comments",
  "optionalDependencies": {},
  "readme": "# [postcss][postcss]-discard-comments [![Build Status](https://travis-ci.org/ben-eb/postcss-discard-comments.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-discard-comments.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-discard-comments.svg)][deps]\n\n> Discard comments in your CSS files with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-discard-comments) do:\n\n```\nnpm install postcss-discard-comments --save\n```\n\n## Example\n\n### Input\n\n```css\nh1/* heading */{\n    margin: 0 auto\n}\n```\n\n### Output\n\n```css\nh1 {\n    margin: 0 auto\n}\n```\n\nThis module discards comments from your CSS files; by default, it will remove\nall regular comments (`/* comment */`) and preserve comments marked as important\n(`/*! important */`) or that refer to a source mapping URL (`/*# sourcemap */`).\n\n## API\n\n### comments([options])\n\n#### options\n\n##### remove(function)\n\nType: `function`\nReturn: `boolean`\nVariable: `comment` contains a comment without `/**/`\n\nFor each comment, return true to remove, or false to keep the comment.\n\n```js\nfunction(comment) {}\n```\n\n```js\nvar css = '/* headings *//*@ h1 */h1{margin:0 auto}/*@ h2 */h2{color:red}';\nconsole.log(postcss(comments({\n    remove: function(comment) { return comment[0] == \"@\"; }\n})).process(css).css);\n//=> /* headings */h1{margin:0 auto}h2{color:red}\n```\n**NOTE:** If you use the `remove` function other options will not be available.\n\n##### removeAll\n\nType: `boolean`\nDefault: `false`\n\nRemove all comments marked as important.\n\n```js\nvar css = '/*! heading */h1{margin:0 auto}/*! heading 2 */h2{color:red}';\nconsole.log(postcss(comments({removeAll: true})).process(css).css);\n//=> h1{margin:0 auto}h2{color:red}\n```\n\n##### removeAllButFirst\n\nType: `boolean`\nDefault: `false`\n\nRemove all comments marked as important, but the first one.\n\n```js\nvar css = '/*! heading */h1{margin:0 auto}/*! heading 2 */h2{color:red}';\nconsole.log(postcss(comments({removeAllButFirst: true})).process(css).css);\n//=> /*! heading */h1{margin:0 auto}h2{color:red}\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n## License\n\nMIT © Ben Briggs\n\n[ci]:      https://travis-ci.org/ben-eb/postcss-discard-comments\n[deps]:    https://gemnasium.com/ben-eb/postcss-discard-comments\n[npm]:     http://badge.fury.io/js/postcss-discard-comments\n[postcss]: https://github.com/postcss/postcss\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ben-eb/postcss-discard-comments.git"
  },
  "scripts": {
    "test": "tape test.js | tap-spec"
  },
  "version": "2.0.3"
}
