gh-action-bump-version/node_modules/shebang-regex
Automated Version Bump bfd3ded023 ci: commit dependencies 2021-08-07 21:20:18 +00:00
..
index.js ci: commit dependencies 2021-08-07 21:20:18 +00:00
license ci: commit dependencies 2021-08-07 21:20:18 +00:00
package.json ci: commit dependencies 2021-08-07 21:20:18 +00:00
readme.md ci: commit dependencies 2021-08-07 21:20:18 +00:00

readme.md

shebang-regex Build Status

Regular expression for matching a shebang

Install

$ npm install --save shebang-regex

Usage

var shebangRegex = require('shebang-regex');
var str = '#!/usr/bin/env node\nconsole.log("unicorns");';

shebangRegex.test(str);
//=> true

shebangRegex.exec(str)[0];
//=> '#!/usr/bin/env node'

License

MIT © Sindre Sorhus