{"_id":"comment-regex","_rev":"9-9a1ecd64e96f5f34dc7c21db0d65fd26","name":"comment-regex","description":"Regular expression for matching JavaScript comments","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"comment-regex","version":"1.0.0","description":"Regular expression for matching JavaScript comments","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/comment-regex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["text","string","regex","regexp","re","match","test","find","pattern","comment","comments","js","javascript","line","block"],"devDependencies":{"ava":"0.0.4"},"gitHead":"a3d4222bef18d8b09993542738a28d7916d60405","bugs":{"url":"https://github.com/sindresorhus/comment-regex/issues"},"homepage":"https://github.com/sindresorhus/comment-regex","_id":"comment-regex@1.0.0","_shasum":"7dd70268c83648a9c4cc19bf472d52e64f63918d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"7dd70268c83648a9c4cc19bf472d52e64f63918d","tarball":"https://registry.npmjs.org/comment-regex/-/comment-regex-1.0.0.tgz","integrity":"sha512-V/DzIoUH777cJPj4Tnks+he7X43nCZLV45orVQsVGPV1y/TazWu2XHKB0fWXZGCwYNxBgxlxZj6m13NyuQOW4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7T/b0Pdzy0eqAXm5vqdl38KWScmerX3eGcFzQBnb8IwIhAKSY9iJ4Uoi8bXXxRPPT3cr7XC3eilm4o2dcFIBBD9nF"}]},"directories":{}},"1.0.1":{"name":"comment-regex","version":"1.0.1","description":"Regular expression for matching JavaScript comments","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/comment-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"ava"},"files":["index.js"],"keywords":["text","string","regex","regexp","re","match","test","find","pattern","comment","comments","js","javascript","line","block"],"devDependencies":{"ava":"*"},"gitHead":"7cfc559dc6954b7d75dea7d2a2c434da12f49f7d","bugs":{"url":"https://github.com/sindresorhus/comment-regex/issues"},"homepage":"https://github.com/sindresorhus/comment-regex#readme","_id":"comment-regex@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-IWlN//Yfby92tOIje7J18HkNmWRR7JESA/BK8W7wqY/akITpU5B0JQWnbTjCfdChSrDNb0DrdA9jfAxiiBXyiQ==","shasum":"e070d2c4db33231955d0979d27c918fcb6f93565","tarball":"https://registry.npmjs.org/comment-regex/-/comment-regex-1.0.1.tgz","fileCount":4,"unpackedSize":3221,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAMmCftVZLFwkYpkHFb76NuGDt4Bjtxcsbd+W9vnjJ/AAiEA3CX0un+CBbSDExe9JZhzGp1xjtO0LwWHnOpS8Jk6x74="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/comment-regex_1.0.1_1521794507279_0.8705761873687534"},"_hasShrinkwrap":false},"2.0.0":{"name":"comment-regex","version":"2.0.0","description":"Regular expression for matching JavaScript comments","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/comment-regex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["text","string","regex","regexp","match","test","find","pattern","comment","comments","js","javascript","line","block"],"devDependencies":{"ava":"^3.15.0","xo":"^0.45.0"},"gitHead":"e9a198aed2bc25a35ac4773786b4763778c1c878","bugs":{"url":"https://github.com/sindresorhus/comment-regex/issues"},"homepage":"https://github.com/sindresorhus/comment-regex#readme","_id":"comment-regex@2.0.0","_nodeVersion":"14.17.5","_npmVersion":"7.20.3","dist":{"integrity":"sha512-wJGINs8KkRSFIkRJWjK1KMsSiY+EnwzXCHk2bXp4W8h/sYFlhkOPOQqXqiOnG4QhGoIy98a4EVJcz8KbgVYg6A==","shasum":"9836276ba088ead0d71abdc2f68596b5e7b1c1af","tarball":"https://registry.npmjs.org/comment-regex/-/comment-regex-2.0.0.tgz","fileCount":4,"unpackedSize":3124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2mh2CRA9TVsSAnZWagAAEXkP/RVYwB/e+e2uV+Vv3L1W\nc316quhs2AzZM97JQYViAqtkOZfxcSJkzdZHJ2AR7UShkD9VCcNqRtOrZVKT\nSzLZpas8d4Wz87TfxZbE2QcaniH8WHTwf7DVuNsJJTaFwmv13sMFUHde+RKT\ndahlHmKeAhtQVVFNcgpIjuiZqRfd5ibNPsQDZzx+TtCh8OyL55SnIk9nCtgT\nJ282SB7bGUYFda4dVv8DQ3tr6MMMcOFSelBy6GoxdIOm4cL2dkKrCvj2KJNA\nzrRr/ZPmDOA4tZOc4UFv7pBNEdJTrH6VXeAYAePtkpTquqb0ok1EbrSJlidV\np28fJamHSKmOjJOhGWuOcHqeP7koFk05HRCRFp4JHTM7vQGnKgFYW7FVAYFt\n2DRXlP+QTJjLVlfwYhRhJDG+yM0kKyWekm9n4Vlo8h6mIc5g0LoH55/lZ3ub\nvvoN8RZWHbGqL9mak5FNRVMAaABV9NT8KW24XCl9+eGVLjazDDTCQvpN9eS/\n00hxXbzBlvzEcTURHUd8zmcMD9k80hWeaFDle8/DCX3oSfPbD+5xbt4610zI\nvjDAoVvOnYBllOuSC+HU3dyw5X+Xr747bW2lEp3ymRJIZ6sx6MXJ/sIb/Js8\nyhgM57r0oBSAPs1OhSYyi1E2h8SWryao+3kQmUKKW5hYzKcvsqTiZZSlfVgQ\nvdZs\r\n=wLYg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB00D0Up94WdzHMa81IIoyJVYZf/W5GY9w3hln80XpyPAiBivZLKijnsqzl0AitkydvVo87lWknkl7DaqkccrWYHkw=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/comment-regex_2.0.0_1634144628859_0.7365437919436029"},"_hasShrinkwrap":false}},"readme":"# comment-regex\n\n> Regular expression for matching JavaScript comments\n\n*This is pretty fragile and created for performance reasons where using a real parser would be overkill. Do not use it with untrusted user input.*\n\n## Install\n\n```sh\nnpm install comment-regex\n```\n\n## Usage\n\n```js\nimport {commentRegex} from 'comment-regex';\n\n// Contains a comment\ncommentRegex().test('/* unicorn */\\nvar foo = true;');\n//=> true\n\n// Get the contents of a comment\ncommentRegex().exec('/* unicorn */\\nvar foo = true;')[2].trim();\n\n// Get all the comments\n'/* unicorn */\\nvar foo = true;\\nvar unicorn = \"rainbows\"; // rainbow'.match(commentRegex());\n//=> ['/* unicorn */', ' // rainbow']\n```\n\n## API\n\nThe contents of the comment is in the first submatch.\n\n### commentRegex()\n\nReturns a regex for matching line and block comments.\n\n### lineCommentRegex()\n\nReturns a regex for matching line comments.\n\n### blockCommentRegex()\n\nReturns a regex for matching block comments.\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-06-13T06:35:17.181Z","created":"2014-09-13T11:28:02.057Z","1.0.0":"2014-09-13T11:28:02.057Z","1.0.1":"2018-03-23T08:41:47.321Z","2.0.0":"2021-10-13T17:03:49.039Z"},"homepage":"https://github.com/sindresorhus/comment-regex#readme","keywords":["text","string","regex","regexp","match","test","find","pattern","comment","comments","js","javascript","line","block"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/comment-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/comment-regex/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"farskipper":true}}