arvin.torres e3ca5d94a7 Campanas de Paz para la Mujer | 5 lat temu | |
---|---|---|
.. | ||
index.js | 5 lat temu | |
license | 5 lat temu | |
package.json | 5 lat temu | |
readme.md | 5 lat temu |
Regular expression for matching a shebang
$ npm install --save shebang-regex
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'
MIT © Sindre Sorhus