source: imaps-frontend/node_modules/shebang-regex/index.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 446 bytes
Line 
1/**
2Regular expression for matching a [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)) line.
3
4@example
5```
6import shebangRegex = require('shebang-regex');
7
8const string = '#!/usr/bin/env node\nconsole.log("unicorns");';
9
10shebangRegex.test(string);
11//=> true
12
13shebangRegex.exec(string)[0];
14//=> '#!/usr/bin/env node'
15
16shebangRegex.exec(string)[1];
17//=> '/usr/bin/env node'
18```
19*/
20declare const shebangRegex: RegExp;
21
22export = shebangRegex;
Note: See TracBrowser for help on using the repository browser.