{"_id":"postcss-comment","_rev":"325356","name":"postcss-comment","description":"Allow postcss to support inline comments","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"time":{"modified":"2021-06-07T02:44:28.000Z","created":"2015-11-04T17:35:17.288Z","2.0.0":"2018-03-05T03:55:09.662Z","1.0.3":"2016-01-27T01:53:28.625Z","1.0.2":"2015-11-19T08:31:26.882Z","1.0.1":"2015-11-19T08:21:20.837Z","0.1.2":"2015-11-05T13:44:21.025Z","0.1.1":"2015-11-04T17:35:17.288Z"},"users":{},"author":{"name":"zoubin"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"versions":{"2.0.0":{"name":"postcss-comment","version":"2.0.0","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js","coveralls":"COVERALLS_REPO_TOKEN=REPO_TOKEN npm test"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{"postcss":"^6.0.0"},"devDependencies":{"postcss-scss":"^0.1.9","tap":"^6.0.0"},"gitHead":"5315546417c1489703e79d10b738f4855b8da3b4","_id":"postcss-comment@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"6c8808e64cee25c33146518a8a82944b05f11e6f","size":4895,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-2.0.0.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-comment_2.0.0_1520222109492_0.06677543637403027"},"_hasShrinkwrap":false,"publish_time":1520222109662,"_cnpm_publish_time":1520222109662},"1.0.3":{"name":"postcss-comment","version":"1.0.3","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js","coveralls":"COVERALLS_REPO_TOKEN=REPO_TOKEN npm test"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{"postcss":"^5.0.10"},"devDependencies":{"tap":"^5.0.0"},"gitHead":"a43bb578401a1774daa9708e999e786363873f49","_id":"postcss-comment@1.0.3","_shasum":"3df031d27260b4864e3ab4022a78bb53bbaa52a2","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"3df031d27260b4864e3ab4022a78bb53bbaa52a2","size":4164,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-1.0.3.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"publish_time":1453859608625,"_cnpm_publish_time":1453859608625,"_hasShrinkwrap":false},"1.0.2":{"name":"postcss-comment","version":"1.0.2","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{"postcss":"^5.0.10"},"devDependencies":{"del":"^2.0.2","gulp":"^3.9.0","tap":"^2.2.0"},"_id":"postcss-comment@1.0.2","_shasum":"d23517dfdc76b1d2d321de5fdf182011639e1222","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"d23517dfdc76b1d2d321de5fdf182011639e1222","size":3685,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-1.0.2.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"publish_time":1447921886882,"_cnpm_publish_time":1447921886882,"_hasShrinkwrap":false},"1.0.1":{"name":"postcss-comment","version":"1.0.1","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{"postcss":"^5.0.10"},"devDependencies":{"tap":"^2.2.0"},"gitHead":"37b99df6ed517e53bcb9f0cc981eec010b6b34e6","_id":"postcss-comment@1.0.1","_shasum":"77773b6fd8f41cc62a93586567dc23490f9a2ff4","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"77773b6fd8f41cc62a93586567dc23490f9a2ff4","size":4215,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-1.0.1.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"publish_time":1447921280837,"_cnpm_publish_time":1447921280837,"_hasShrinkwrap":false},"0.1.2":{"name":"postcss-comment","version":"0.1.2","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{},"peerDependencies":{"postcss":"^5.0.10"},"devDependencies":{"tap":"^2.2.0"},"gitHead":"4d0f59ff3acbeb9e9dd2ebeb2406a242b25182bb","_id":"postcss-comment@0.1.2","_shasum":"7e258bd6aa15606203243fbaa5fb145d0c3f65ea","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"7e258bd6aa15606203243fbaa5fb145d0c3f65ea","size":3311,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-0.1.2.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"publish_time":1446731061025,"_cnpm_publish_time":1446731061025,"_hasShrinkwrap":false},"0.1.1":{"name":"postcss-comment","version":"0.1.1","description":"Allow postcss to support inline comments","main":"index.js","scripts":{"test":"tap test/*.js"},"repository":{"type":"git","url":"git+https://github.com/zoubin/postcss-comment.git"},"keywords":["postcss","inline","comment"],"author":{"name":"zoubin"},"license":"MIT","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"homepage":"https://github.com/zoubin/postcss-comment#readme","dependencies":{},"peerDependencies":{"postcss":"^5.0.10"},"devDependencies":{"tap":"^2.2.0"},"gitHead":"52d77749f323080c1e90474a57ec1d9f851f8ff5","_id":"postcss-comment@0.1.1","_shasum":"86ab279d0105dae3b9e7f14f10017fe71138098d","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"zoubin","email":"zoubin04@gmail.com"},"dist":{"shasum":"86ab279d0105dae3b9e7f14f10017fe71138098d","size":3239,"noattachment":false,"key":"/postcss-comment/-/postcss-comment-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-comment/download/postcss-comment-0.1.1.tgz"},"maintainers":[{"name":"zoubin","email":"zoubin04@gmail.com"}],"directories":{},"publish_time":1446658517288,"_cnpm_publish_time":1446658517288,"_hasShrinkwrap":false}},"readme":"# postcss-comment\n[![version](https://img.shields.io/npm/v/postcss-comment.svg)](https://www.npmjs.org/package/postcss-comment)\n[![status](https://travis-ci.org/zoubin/postcss-comment.svg?branch=master)](https://travis-ci.org/zoubin/postcss-comment)\n[![dependencies](https://david-dm.org/zoubin/postcss-comment.svg)](https://david-dm.org/zoubin/postcss-comment)\n[![devDependencies](https://david-dm.org/zoubin/postcss-comment/dev-status.svg)](https://david-dm.org/zoubin/postcss-comment#info=devDependencies)\n\nAllow postcss to support inline comments.\n\n## Usage\n\n```bash\nnpm i --save-dev postcss postcss-comment\n\n```\n\n### As parser\n\n```javascript\nvar postcss = require('postcss')\nvar parser = require('postcss-comment')\n\nvar fs = require('fs')\n\nvar file = __dirname + '/inline.css'\n\npostcss()\n  .process(\n    fs.readFileSync(file, 'utf8'),\n    { from: file, parser: parser }\n  )\n  .then(function (result) {\n    console.log(result.css)\n  })\n\n```\n\n### Hook require\n```javascript\nrequire('postcss-comment/hookRequire')\nvar postcss = require('postcss')\n\nvar fs = require('fs')\n\nvar file = __dirname + '/inline.css'\n\npostcss()\n  .process(\n    fs.readFileSync(file, 'utf8'),\n    { from: file }\n  )\n  .then(function (result) {\n    console.log(result.css)\n  })\n\n```\n\nOr:\n```javascript\nvar postcss = require('postcss-comment/hookRequire')\n\nvar fs = require('fs')\n\nvar file = __dirname + '/inline.css'\n\npostcss()\n  .process(\n    fs.readFileSync(file, 'utf8'),\n    { from: file }\n  )\n  .then(function (result) {\n    console.log(result.css)\n  })\n\n```\n\n\n## Example\n\ninline.css:\n```css\n/*\n * comments//\n * //comments\n */\n// comments\n//* comments*/\n.inline-comment { /// comments\n  // com//ments\n  color: red; // comments\n} // /*comments\n//*/ comments\n\n```\n\noutputs:\n```css\n/*\n * comments//\n * //comments\n */\n/* comments */\n/** comments*\\/ */\n.inline-comment { /*\\/ comments */\n  /* com//ments */\n  color: red; /* comments */\n} /* /*comments */\n/**\\/ comments */\n\n```\n","_attachments":{},"homepage":"https://github.com/zoubin/postcss-comment#readme","bugs":{"url":"https://github.com/zoubin/postcss-comment/issues"},"license":"MIT"}