{"_attachments":{},"_id":"shebang-regex","_rev":"1446-61f1467923990e8a812ed88c","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"description":"Regular expression for matching a shebang line","dist-tags":{"latest":"4.0.0"},"license":"MIT","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"name":"shebang-regex","readme":"# shebang-regex\n\n> Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line\n\n## Install\n\n```\n$ npm install shebang-regex\n```\n\n## Usage\n\n```js\nimport shebangRegex from 'shebang-regex';\n\nconst string = '#!/usr/bin/env node\\nconsole.log(\"unicorns\");';\n\nshebangRegex.test(string);\n//=> true\n\nshebangRegex.exec(string)[0];\n//=> '#!/usr/bin/env node'\n\nshebangRegex.exec(string)[1];\n//=> '/usr/bin/env node'\n```\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-shebang-regex?utm_source=npm-shebang-regex&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","time":{"created":"2022-01-26T13:02:49.090Z","modified":"2024-05-28T17:04:57.534Z","4.0.0":"2021-08-13T23:09:49.954Z","3.0.0":"2019-04-27T10:46:19.256Z","2.0.0":"2015-12-04T16:40:07.830Z","1.0.0":"2015-02-17T05:24:58.945Z"},"versions":{"4.0.0":{"name":"shebang-regex","version":"4.0.0","description":"Regular expression for matching a shebang line","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/shebang-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 && tsd"},"keywords":["regex","regexp","shebang","match","test","line"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.17.0","xo":"^0.44.0"},"gitHead":"a2e85dfd79f7c6d45b2d63ba4989d245e5f8b64a","bugs":{"url":"https://github.com/sindresorhus/shebang-regex/issues"},"homepage":"https://github.com/sindresorhus/shebang-regex#readme","_id":"shebang-regex@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"86b8202f10d28f4da056d4b905043128b3a6a0a7","size":1710,"noattachment":false,"tarball":"https://registry.npmmirror.com/shebang-regex/-/shebang-regex-4.0.0.tgz","integrity":"sha512-YSKeSljCliLkWidW84GWL1HCguI0iEqhnBOLhrVXw/fN9he9ngekCy8zqJ1jXTPYmJ3Xkf3gLuNDVHQWdRqinw=="},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shebang-regex_4.0.0_1628896189815_0.08775966024726811"},"_hasShrinkwrap":false,"publish_time":1628896189954,"_cnpm_publish_time":1628896189954,"_cnpmcore_publish_time":"2021-12-13T11:36:36.638Z"},"3.0.0":{"name":"shebang-regex","version":"3.0.0","description":"Regular expression for matching a shebang line","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/shebang-regex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["regex","regexp","shebang","match","test","line"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"27a9a6f0f85c04b9c37a43cf7503fdb58f5ae8d6","bugs":{"url":"https://github.com/sindresorhus/shebang-regex/issues"},"homepage":"https://github.com/sindresorhus/shebang-regex#readme","_id":"shebang-regex@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"ae16f1644d873ecad843b0307b143362d4c42172","size":1503,"noattachment":false,"tarball":"https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz","integrity":"sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shebang-regex_3.0.0_1556361979130_0.30848524113197073"},"_hasShrinkwrap":false,"publish_time":1556361979256,"_cnpm_publish_time":1556361979256,"_cnpmcore_publish_time":"2021-12-13T11:36:36.904Z"},"2.0.0":{"name":"shebang-regex","version":"2.0.0","description":"Regular expression for matching a shebang line","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/shebang-regex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["re","regex","regexp","shebang","match","test","line"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"62d96ada2264e959e28874b486de85a9593c69ae","bugs":{"url":"https://github.com/sindresorhus/shebang-regex/issues"},"homepage":"https://github.com/sindresorhus/shebang-regex","_id":"shebang-regex@2.0.0","_shasum":"f500bf6851b61356236167de2cc319b0fd7f0681","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f500bf6851b61356236167de2cc319b0fd7f0681","size":1437,"noattachment":false,"tarball":"https://registry.npmmirror.com/shebang-regex/-/shebang-regex-2.0.0.tgz","integrity":"sha512-qZ2//Zb9flLDxFym9xqhDyquM5WRdmuk/vviks/2cr9c5Vm+mX578TP8DwUc9fbfX58Tgeef2og1elYnkHli2w=="},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"publish_time":1449247207830,"_hasShrinkwrap":false,"_cnpm_publish_time":1449247207830,"_cnpmcore_publish_time":"2021-12-13T11:36:37.232Z"},"1.0.0":{"name":"shebang-regex","version":"1.0.0","description":"Regular expression for matching a shebang","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/shebang-regex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["re","regex","regexp","shebang","match","test"],"devDependencies":{"ava":"0.0.4"},"gitHead":"cb774c70d5f569479ca997abf8ee7e558e617284","bugs":{"url":"https://github.com/sindresorhus/shebang-regex/issues"},"homepage":"https://github.com/sindresorhus/shebang-regex","_id":"shebang-regex@1.0.0","_shasum":"da42f49740c0b42db2ca9728571cb190c98efea3","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"da42f49740c0b42db2ca9728571cb190c98efea3","size":1425,"noattachment":false,"tarball":"https://registry.npmmirror.com/shebang-regex/-/shebang-regex-1.0.0.tgz","integrity":"sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ=="},"directories":{},"publish_time":1424150698945,"_hasShrinkwrap":false,"_cnpm_publish_time":1424150698945,"_cnpmcore_publish_time":"2021-12-13T11:36:37.517Z"}},"bugs":{"url":"https://github.com/sindresorhus/shebang-regex/issues"},"homepage":"https://github.com/sindresorhus/shebang-regex#readme","keywords":["regex","regexp","shebang","match","test","line"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/shebang-regex.git"},"_source_registry_name":"default"}