Urara-Blog/node_modules/.pnpm-store/v3/files/04/3afda90e8b38b16f8360417fa07c38bba757ea6dd56be042220dda431f9ba8c2f147ba82d26ef45106a50c894b88f0b14302dc331ffa6dafba037c06b2e7f7
2022-08-14 01:14:53 +08:00

22 lines
446 B
Text

/**
Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line.
@example
```
import shebangRegex = require('shebang-regex');
const string = '#!/usr/bin/env node\nconsole.log("unicorns");';
shebangRegex.test(string);
//=> true
shebangRegex.exec(string)[0];
//=> '#!/usr/bin/env node'
shebangRegex.exec(string)[1];
//=> '/usr/bin/env node'
```
*/
declare const shebangRegex: RegExp;
export = shebangRegex;