setup-kubectl/node_modules/shebang-regex
github-actions[bot] 7f7e5ba5ea
Add node modules and compiled JavaScript from main (#57)
Co-authored-by: Oliver King <oking3@uncc.edu>
2022-06-21 12:18:30 -04:00
..
index.js Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
license Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
package.json Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00
readme.md Add node modules and compiled JavaScript from main (#57) 2022-06-21 12:18:30 -04:00

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