InternetProgramming/Lab3/node_modules/shebang-regex
2023-12-15 14:42:22 +04:00
..
index.js Лаб 4 2023-12-15 14:42:22 +04:00
license Лаб 4 2023-12-15 14:42:22 +04:00
package.json Лаб 4 2023-12-15 14:42:22 +04:00
readme.md Лаб 4 2023-12-15 14:42:22 +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