{"_id":"@cjser/shebang-regex","name":"@cjser/shebang-regex","dist-tags":{"latest":"4.0.0-cjser.2"},"versions":{"4.0.0-cjser.2":{"name":"@cjser/shebang-regex","version":"4.0.0-cjser.2","description":"Regular expression for matching a shebang line","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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"},"main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"4.0.0","cjserVersion":2,"original":{"name":"shebang-regex","version":"4.0.0","exports":"./index.js","repository":"sindresorhus/shebang-regex","files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/shebang-regex@4.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-/vkbxFvteEHoFVcvo89d8Z+skFG7EW9zFw9sUsBcMPpzlA+067kwc2NKO/YlkuvYkVLs6aSdCZrQRIBVVTb9qg==","shasum":"3943586dd82a9250ec3df90c41bfd4448c5e7a84","tarball":"https://registry.npmjs.org/@cjser/shebang-regex/-/shebang-regex-4.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":5190,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDG8s/Dh+5tPqUeMB2xkV5FViHp17JuUt0BIO2hvQ1DcAiEA/EsDDYItcO1TxJRLoheLGvFWtBos/nruw1rxo0sox1o="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shebang-regex_4.0.0-cjser.2_1778159959438_0.3946509569857166"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:19:19.355Z","4.0.0-cjser.2":"2026-05-07T13:19:19.571Z","modified":"2026-05-07T13:19:20.105Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Regular expression for matching a shebang line","keywords":["regex","regexp","shebang","match","test","line"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/shebang-regex\n","readmeFilename":"readme.md","_rev":"1-c3fc1419bc8ed65e6cf1a4eef8b944fa"}