{"_id":"strip-comments","_rev":"69315","name":"strip-comments","description":"Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:22:57.000Z","created":"2014-02-10T11:46:52.094Z","2.0.1":"2019-11-13T15:37:35.194Z","2.0.0":"2019-11-06T05:32:06.841Z","1.0.2":"2018-05-03T05:07:20.758Z","1.0.1":"2018-03-24T06:23:43.975Z","1.0.0":"2018-03-24T05:54:03.116Z","0.4.4":"2016-02-14T23:12:59.259Z","0.4.3":"2015-12-25T09:15:47.122Z","0.4.2":"2015-12-11T23:25:12.799Z","0.4.1":"2015-11-04T13:02:14.944Z","0.4.0":"2015-11-04T09:02:55.561Z","0.3.4":"2015-10-22T11:00:39.430Z","0.3.2":"2014-09-02T18:25:13.379Z","0.3.1":"2014-09-02T18:22:36.532Z","0.3.0":"2014-09-02T18:19:10.510Z","0.2.0":"2014-08-11T02:18:07.188Z","0.1.6":"2014-02-13T07:44:07.028Z","0.1.4":"2014-02-13T06:15:03.948Z","0.1.3":"2014-02-13T06:01:19.927Z","0.1.2":"2014-02-13T05:58:27.403Z","0.1.1":"2014-02-10T12:19:57.352Z","0.1.0":"2014-02-10T11:46:52.094Z"},"users":{"tunnckocore":true,"abdihaikal":true,"mikestaub":true,"claudiopro":true,"nraibaud":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"versions":{"2.0.1":{"name":"strip-comments","description":"Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.","version":"2.0.1","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","main":"index.js","engines":{"node":">=10"},"scripts":{"test":"mocha","cover":"nyc --reporter=text --reporter=html mocha"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^6.2.2","nyc":"^14.1.1"},"keywords":["ada comments","apl comments","applescript comments","block comment","block","block-comment","c comments","code comment","comment","comments","csharp comments","css comments","css","hashbang comments","haskell comments","html comments","java comments","javascript comments","javascript","js","less comments","less css","less","less.js","lessjs","line comment","line comments","line","line-comment","line-comments","lua comments","matlab comments","ocaml comments","pascal comments","perl comments","php comments","python comments","remove","ruby comments","sass comments","sass","shebang comments","sql comments","strip","swift comments","typscript comments","xml comments"],"verb":{"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./examples/support/helpers.js"],"related":{"list":["code-context","extract-comments","parse-code-context","parse-comments"]},"lint":{"reflinks":true}},"gitHead":"ea09cdac8df20c7edb825d709460c4699c168d01","_id":"strip-comments@2.0.1","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"4ad11c3fbcac177a67a40ac224ca339ca1c1ba9b","size":7896,"noattachment":false,"key":"/strip-comments/-/strip-comments-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-2.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-comments_2.0.1_1573659455079_0.002352066576976286"},"_hasShrinkwrap":false,"publish_time":1573659455194,"_cnpm_publish_time":1573659455194},"2.0.0":{"name":"strip-comments","description":"Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","main":"index.js","engines":{"node":">=10"},"scripts":{"test":"mocha","cover":"nyc --reporter=text --reporter=html mocha"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^6.2.2","nyc":"^14.1.1"},"keywords":["ada comments","apl comments","applescript comments","block comment","block","block-comment","c comments","code comment","comment","comments","csharp comments","css comments","css","hashbang comments","haskell comments","html comments","java comments","javascript comments","javascript","js","less comments","less css","less","less.js","lessjs","line comment","line comments","line","line-comment","line-comments","lua comments","matlab comments","ocaml comments","pascal comments","perl comments","php comments","python comments","remove","ruby comments","sass comments","sass","shebang comments","sql comments","strip","swift comments","typscript comments","xml comments"],"verb":{"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./examples/support/helpers.js"],"related":{"list":["code-context","extract-comments","parse-code-context","parse-comments"]},"lint":{"reflinks":true}},"gitHead":"94c42b92bf1810cf2c7707a63d2272d068bd42f6","_id":"strip-comments@2.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"d6b3e0e4ad594e2dfa6aa0d63674463253f3832d","size":5801,"noattachment":false,"key":"/strip-comments/-/strip-comments-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-2.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-comments_2.0.0_1573018326686_0.2854936264340926"},"_hasShrinkwrap":false,"publish_time":1573018326841,"_cnpm_publish_time":1573018326841},"1.0.2":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"1.0.2","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"babel-extract-comments":"^1.0.0","babel-plugin-transform-object-rest-spread":"^6.26.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["babel","babylon","block","block comment","code comment","comment","comments","javascript","line","line comment","remove","strip"],"verb":{"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./examples/support/helpers.js"],"related":{"list":["babel-extract-comments","code-context","extract-comments","parse-code-context","parse-comments"]},"lint":{"reflinks":true}},"gitHead":"47ba53f07ec2e4bdbf972b882397bc848a327b51","_id":"strip-comments@1.0.2","_npmVersion":"6.0.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"82b9c45e7f05873bee53f37168af930aa368679d","size":4550,"noattachment":false,"key":"/strip-comments/-/strip-comments-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-1.0.2.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-comments_1.0.2_1525324040700_0.1445449722040979"},"_hasShrinkwrap":false,"publish_time":1525324040758,"_cnpm_publish_time":1525324040758},"1.0.1":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"babel-extract-comments":"^1.0.0","babel-plugin-transform-object-rest-spread":"^6.26.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["block","block comment","code comment","comment","comments","javascript","line","line comment","remove","strip"],"verb":{"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./examples/support/helpers.js"],"related":{"list":["babel-extract-comments","code-context","extract-comments","parse-code-context","parse-comments"]},"lint":{"reflinks":true}},"gitHead":"a1ffa83c06d06cb4bb8ee8a631ac959ff27aaa14","_id":"strip-comments@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"6e0b0f25ad0c56aa1e2d170203cf9ae98f4f1be1","size":4460,"noattachment":false,"key":"/strip-comments/-/strip-comments-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-1.0.1.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-comments_1.0.1_1521872623749_0.955813657057017"},"_hasShrinkwrap":false,"publish_time":1521872623975,"_cnpm_publish_time":1521872623975},"1.0.0":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"babel-extract-comments":"^1.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["block","block comment","code comment","comment","comments","javascript","line","line comment","remove","strip"],"verb":{"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"helpers":["./examples/support/helpers.js"],"related":{"list":["babel-extract-comments","code-context","extract-comments","parse-code-context","parse-comments"]},"lint":{"reflinks":true}},"gitHead":"aff557c82864fb6f172761d485a206d5a69083e9","_id":"strip-comments@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"1f60d272d750b4c60caeb3315f87876d825fd7f6","size":4410,"noattachment":false,"key":"/strip-comments/-/strip-comments-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strip-comments_1.0.0_1521870843055_0.08284126888826449"},"_hasShrinkwrap":false,"publish_time":1521870843116,"_cnpm_publish_time":1521870843116},"0.4.4":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"0.4.4","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","extract-comments":"^0.10.1"},"devDependencies":{"gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"toc":true,"tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["code-context","esprima-extract-comments","extract-comments","js-comments","parse-code-context","parse-comments","snapdragon"]}},"gitHead":"3b2c0f73fabde5a941541acd3b9e279d701a318b","_id":"strip-comments@0.4.4","_shasum":"b9caafc4fe905f96c091df89f9a7215f2aa629c6","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b9caafc4fe905f96c091df89f9a7215f2aa629c6","size":3837,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.4.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.4.4.tgz"},"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/strip-comments-0.4.4.tgz_1455491575288_0.4509366557467729"},"directories":{},"publish_time":1455491579259,"_cnpm_publish_time":1455491579259,"_hasShrinkwrap":false},"0.4.3":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"0.4.3","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extract-comments":"^0.8.7"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"related":{"list":["code-context","esprima-extract-comments","extract-comments","js-comments","parse-code-context","parse-comments","snapdragon"]},"plugins":["gulp-format-md"]},"gitHead":"d159b0c7c81465f01eccd6a7921a981cc6c01e53","_id":"strip-comments@0.4.3","_shasum":"630094e70831675cdb6085334946aa4c8efe8cdb","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"630094e70831675cdb6085334946aa4c8efe8cdb","size":2966,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.4.3.tgz"},"directories":{},"publish_time":1451034947122,"_cnpm_publish_time":1451034947122,"_hasShrinkwrap":false},"0.4.2":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"0.4.2","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extract-comments":"^0.8.5"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"related":{"list":["snapdragon","esprima-extract-comments","extract-comments","js-comments","parse-comments","code-context","parse-code-context"]}},"gitHead":"58814a34521c93e697a84124688d5b6a0e35adcc","_id":"strip-comments@0.4.2","_shasum":"00338599eb9ac7d923bd0cbc9aa3448a27154e13","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"00338599eb9ac7d923bd0cbc9aa3448a27154e13","size":2771,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.4.2.tgz"},"directories":{},"publish_time":1449876312799,"_cnpm_publish_time":1449876312799,"_hasShrinkwrap":false},"0.4.1":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"0.4.1","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extract-comments":"^0.8.5"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"related":{"list":["snapdragon","esprima-extract-comments","extract-comments","js-comments","parse-comments","code-context","parse-code-context"]}},"gitHead":"7544757402d11aa1d7fca5d1ddb25bf3508c0fec","_id":"strip-comments@0.4.1","_shasum":"c5b3a3308cee7e8be4a570f0b18e7097175f7cc5","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c5b3a3308cee7e8be4a570f0b18e7097175f7cc5","size":2765,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.4.1.tgz"},"directories":{},"publish_time":1446642134944,"_cnpm_publish_time":1446642134944,"_hasShrinkwrap":false},"0.4.0":{"name":"strip-comments","description":"Strip comments from code. Removes line comments, block comments, the first comment only, or all comments. Optionally leave protected comments unharmed.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extract-comments":"^0.8.5"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"related":{"list":["snapdragon","esprima-extract-comments","extract-comments","js-comments","parse-comments","code-context","parse-code-context"]}},"gitHead":"16c7fde11908bd6d9c602bfc5623d3cdcb512091","_id":"strip-comments@0.4.0","_shasum":"096c19565c369d35a9d3e9200f2d828d052cafed","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"096c19565c369d35a9d3e9200f2d828d052cafed","size":2771,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.4.0.tgz"},"directories":{},"publish_time":1446627775561,"_cnpm_publish_time":1446627775561,"_hasShrinkwrap":false},"0.3.4":{"name":"strip-comments","description":"Strip comments from code. Removes both line comments and/or block comments, with options to leave protected comments unharmed.","version":"0.3.4","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT","main":"index.js","scripts":{"test":"mocha"},"engines":{"node":">=0.10.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"verb":{"related":{"list":["esprima-extract-comments","extract-comments","js-comments","parse-comments","parse-code-context"]}},"gitHead":"59035d7f52b62867a73289a3c78181bdcd80e3dc","_id":"strip-comments@0.3.4","_shasum":"e1cb91b86de432540d13db2da8e81ae0d4e2ecbf","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e1cb91b86de432540d13db2da8e81ae0d4e2ecbf","size":5024,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.3.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.3.4.tgz"},"directories":{},"publish_time":1445511639430,"_cnpm_publish_time":1445511639430,"_hasShrinkwrap":false},"0.3.2":{"name":"strip-comments","description":"Strip comments from code. Removes both line comments and/or block comments, with options to leave protected comments unharmed.","version":"0.3.2","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":"^0.2.15","verb-tag-jscomments":"^0.2.2"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"engines":{"node":">=0.10.0"},"_id":"strip-comments@0.3.2","_shasum":"965cf5397e04df853f96f317b901046b383b0c46","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"965cf5397e04df853f96f317b901046b383b0c46","size":4223,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.3.2.tgz"},"directories":{},"publish_time":1409682313379,"_cnpm_publish_time":1409682313379,"_hasShrinkwrap":false},"0.3.1":{"name":"strip-comments","description":"Strip comments from code. Removes both line comments and/or block comments, with options to leave protected comments unharmed.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":"^0.2.15","verb-tag-jscomments":"^0.2.2"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"engines":{"node":">=0.10.0"},"_id":"strip-comments@0.3.1","_shasum":"81c9cc2667aea13e34b5153e718c3bab5be067f4","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"81c9cc2667aea13e34b5153e718c3bab5be067f4","size":4227,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.3.1.tgz"},"directories":{},"publish_time":1409682156532,"_cnpm_publish_time":1409682156532,"_hasShrinkwrap":false},"0.3.0":{"name":"strip-comments","description":"Strip comments from code. Removes both line comments and/or block comments, with options to leave protected comments unharmed.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"main":"index.js","scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":"^0.2.15","verb-tag-jscomments":"^0.2.2"},"keywords":["block","comment","comments","expressions","line","protected","re","regex","regexp","regular","remove","strip"],"engines":{"node":">=0.10.0"},"_id":"strip-comments@0.3.0","_shasum":"8dfb2bc442ae511c81d818317448b8933308e726","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"8dfb2bc442ae511c81d818317448b8933308e726","size":4269,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.3.0.tgz"},"directories":{},"publish_time":1409681950510,"_cnpm_publish_time":1409681950510,"_hasShrinkwrap":false},"0.2.0":{"name":"strip-comments","description":"Strip comments from code. Remove both line comments and block comments.","version":"0.2.0","main":"index.js","scripts":{"test":"node_modules/mocha/bin/mocha"},"homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"should":"~4.0.4","mocha":"~1.20.1"},"keywords":["comment","comments","remove","remove comments","strip comment","strip comments","strip","block comments","line comments","strip block comments","strip line comments"],"_id":"strip-comments@0.2.0","_shasum":"18256055301a8e728989b9e5043a8a23c7fcd622","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"18256055301a8e728989b9e5043a8a23c7fcd622","size":2695,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.2.0.tgz"},"directories":{},"publish_time":1407723487188,"_cnpm_publish_time":1407723487188,"_hasShrinkwrap":false},"0.1.6":{"name":"strip-comments","description":"Strip comments from code. Remove both line comments and block comments.","version":"0.1.6","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1","fs-utils":"~0.3.6"},"keywords":["banners","comment","comments","remove","remove banner","remove banners","remove comments","strip comment","strip comments","strip"],"_id":"strip-comments@0.1.6","dist":{"shasum":"267b06957e606f35875405cbfb03cae692ab1e16","size":2512,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.6.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392277447028,"_cnpm_publish_time":1392277447028,"_hasShrinkwrap":false},"0.1.4":{"name":"strip-comments","description":"Strip comments from code. Remove both line comments and block comments.","version":"0.1.4","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1","fs-utils":"~0.3.6"},"keywords":["banners","comment","comments","remove","remove banner","remove banners","remove comments","strip comment","strip comments","strip"],"_id":"strip-comments@0.1.4","dist":{"shasum":"1d69c3bb618a2ca9a288132fcbb642e631636d29","size":2261,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392272103948,"_cnpm_publish_time":1392272103948,"_hasShrinkwrap":false},"0.1.3":{"name":"strip-comments","description":"Strip comments from code. Remove both line comments and block comments.","version":"0.1.3","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1","fs-utils":"~0.3.6"},"_id":"strip-comments@0.1.3","dist":{"shasum":"6adf5cf2643e376b3262a42029e661b51ac12e8d","size":1344,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392271279927,"_cnpm_publish_time":1392271279927,"_hasShrinkwrap":false},"0.1.2":{"name":"strip-comments","description":"Strip comments from code. Remove both line comments and block comments.","version":"0.1.2","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1","fs-utils":"~0.3.6"},"dependencies":{"frep":"~0.1.5"},"_id":"strip-comments@0.1.2","dist":{"shasum":"f369369792cd9271dfd74679b557c6c5d00cd217","size":1360,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392271107403,"_cnpm_publish_time":1392271107403,"_hasShrinkwrap":false},"0.1.1":{"name":"strip-comments","description":"Strip comments from code. Remove line comments and block comments.","version":"0.1.1","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"_id":"strip-comments@0.1.1","dist":{"shasum":"d13385704c489e9c8ddef1db95ff46b3f2c7d4e2","size":1219,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392034797352,"_cnpm_publish_time":1392034797352,"_hasShrinkwrap":false},"0.1.0":{"name":"strip-comments","description":"Strip block comments or line comments from code.","version":"0.1.0","main":"index.js","homepage":"https://github.com/jonschlinkert/strip-comments","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/strip-comments.git"},"bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/strip-comments/blob/master/LICENSE-MIT"}],"devDependencies":{"chai":"~1.9.0","mocha":"~1.17.1"},"_id":"strip-comments@0.1.0","dist":{"shasum":"13c608a741840ca57e67a457479b486dabca73ed","size":1202,"noattachment":false,"key":"/strip-comments/-/strip-comments-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/strip-comments/download/strip-comments-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1392032812094,"_cnpm_publish_time":1392032812094,"_hasShrinkwrap":false}},"readme":"# strip-comments [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/strip-comments.svg?style=flat)](https://www.npmjs.com/package/strip-comments) [![NPM monthly downloads](https://img.shields.io/npm/dm/strip-comments.svg?style=flat)](https://npmjs.org/package/strip-comments) [![NPM total downloads](https://img.shields.io/npm/dt/strip-comments.svg?style=flat)](https://npmjs.org/package/strip-comments) [![Build Status](https://travis-ci.org/jonschlinkert/strip-comments.svg?branch=master)](https://travis-ci.org/jonschlinkert/strip-comments)\n\n> Strip line and/or block comments from a string. Blazing fast, and works with JavaScript, Sass, CSS, Less.js, and a number of other languages.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n- [Install](#install)\n- [What does this do?](#what-does-this-do)\n- [Usage](#usage)\n- [API](#api)\n- [About](#about)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/) (requires [Node.js](https://nodejs.org/en/) >=10):\n\n```sh\n$ npm install --save strip-comments\n```\n\n## What does this do?\n\nTakes a string and returns a new string with comments removed. Works with line comments and/or block comments. Optionally removes the first comment only or ignores protected comments.\n\nWorks with:\n\n* ada\n* apl\n* applescript\n* c\n* csharp\n* css\n* hashbang\n* haskell\n* html\n* java\n* javascript\n* less\n* lua\n* matlab\n* ocaml\n* pascal\n* perl\n* php\n* python\n* ruby\n* sass\n* shebang\n* sql\n* swift\n* typscript\n* xml\n\n## Usage\n\nBy default all comments are stripped.\n\n```js\nconst strip = require('strip-comments');\nconst str = strip('const foo = \"bar\";// this is a comment\\n /* me too *\\/');\nconsole.log(str);\n// => 'const foo = \"bar\";\\n'\n```\n\nFor more use-cases see the [tests](./test/test.js)\n\n## API\n\n### [strip](index.js#L33)\n\nStrip all code comments from the given `input`, including protected comments that start with `!`, unless disabled by setting `options.keepProtected` to true.\n\n**Params**\n\n* `input` **{String}**: string from which to strip comments\n* `options` **{Object}**: optional options, passed to [extract-comments](https://github.com/jonschlinkert/extract-comments)  \n\n- `line` **{Boolean}**: if `false` strip only block comments, default `true`\n- `block` **{Boolean}**: if `false` strip only line comments, default `true`\n- `keepProtected` **{Boolean}**: Keep ignored comments (e.g. `/*!` and `//!`)\n- `preserveNewlines` **{Boolean}**: Preserve newlines after comments are stripped\n* `returns` **{String}**: modified input\n\n**Example**\n\n```js\nconst str = strip('const foo = \"bar\";// this is a comment\\n /* me too */');\nconsole.log(str);\n// => 'const foo = \"bar\";'\n```\n\n### [.block](index.js#L54)\n\nStrip only block comments.\n\n**Params**\n\n* `input` **{String}**: string from which to strip comments\n* `options` **{Object}**: pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`)\n* `returns` **{String}**: modified string\n\n**Example**\n\n```js\nconst strip = require('..');\nconst str = strip.block('const foo = \"bar\";// this is a comment\\n /* me too */');\nconsole.log(str);\n// => 'const foo = \"bar\";// this is a comment'\n```\n\n### [.line](index.js#L74)\n\nStrip only line comments.\n\n**Params**\n\n* `input` **{String}**: string from which to strip comments\n* `options` **{Object}**: pass `opts.keepProtected: true` to keep ignored comments (e.g. `//!`)\n* `returns` **{String}**: modified string\n\n**Example**\n\n```js\nconst str = strip.line('const foo = \"bar\";// this is a comment\\n /* me too */');\nconsole.log(str);\n// => 'const foo = \"bar\";\\n/* me too */'\n```\n\n### [.first](index.js#L95)\n\nStrip the first comment from the given `input`. Or, if `opts.keepProtected` is true, the first non-protected comment will be stripped.\n\n**Params**\n\n* `input` **{String}**\n* `options` **{Object}**: pass `opts.keepProtected: true` to keep comments with `!`\n* `returns` **{String}**\n\n**Example**\n\n```js\nconst output = strip.first(input, { keepProtected: true });\nconsole.log(output);\n// => '//! first comment\\nfoo; '\n```\n\n### [.block](index.js#L116)\n\nParses a string and returns a basic CST (Concrete Syntax Tree).\n\n**Params**\n\n* `input` **{String}**: string from which to strip comments\n* `options` **{Object}**: pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`)\n* `returns` **{String}**: modified string\n\n**Example**\n\n```js\nconst strip = require('..');\nconst str = strip.block('const foo = \"bar\";// this is a comment\\n /* me too */');\nconsole.log(str);\n// => 'const foo = \"bar\";// this is a comment'\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [code-context](https://www.npmjs.com/package/code-context): Parse a string of javascript to determine the context for functions, variables and comments based… [more](https://github.com/jonschlinkert/code-context) | [homepage](https://github.com/jonschlinkert/code-context \"Parse a string of javascript to determine the context for functions, variables and comments based on the code that follows.\")\n* [extract-comments](https://www.npmjs.com/package/extract-comments): Uses esprima to extract line and block comments from a string of JavaScript. Also optionally… [more](https://github.com/jonschlinkert/extract-comments) | [homepage](https://github.com/jonschlinkert/extract-comments \"Uses esprima to extract line and block comments from a string of JavaScript. Also optionally parses code context (the next line of code after a comment).\")\n* [parse-code-context](https://www.npmjs.com/package/parse-code-context): Fast and simple way to parse code context for use with documentation from code comments… [more](https://github.com/jonschlinkert/parse-code-context) | [homepage](https://github.com/jonschlinkert/parse-code-context \"Fast and simple way to parse code context for use with documentation from code comments. Parses context from a single line of JavaScript, for functions, variable declarations, methods, prototype properties, prototype methods etc.\")\n* [parse-comments](https://www.npmjs.com/package/parse-comments): Parse code comments from JavaScript or any language that uses the same format. | [homepage](https://github.com/jonschlinkert/parse-comments \"Parse code comments from JavaScript or any language that uses the same format.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 82 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 4  | [tunnckoCore](https://github.com/tunnckoCore) |  \n| 2  | [mk-pmb](https://github.com/mk-pmb) |  \n| 1  | [kgryte](https://github.com/kgryte) |  \n| 1  | [briandipalma](https://github.com/briandipalma) |  \n| 1  | [epicoxymoron](https://github.com/epicoxymoron) |  \n| 1  | [XuluWarrior](https://github.com/XuluWarrior) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2019, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 13, 2019._","_attachments":{},"homepage":"https://github.com/jonschlinkert/strip-comments","bugs":{"url":"https://github.com/jonschlinkert/strip-comments/issues"},"license":"MIT"}