asdf-games/node_modules/shebang-regex
2019-08-20 17:59:26 +02:00
..
index.js Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
license Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
package.json Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02:00
readme.md Migrated asdf library and all games / tests to gitea and added package.json to all projects. 2019-08-20 17:59:26 +02: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