PIbd-21_Danilov_V.V._Intern.../Lab3/node_modules/shebang-regex/readme.md
Владимир Данилов 83490711d5 отчет
2023-12-19 20:23:11 +04:00

580 B

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