/** 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;
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
index.d.ts | File | 446 B | 0644 |
|
index.js | File | 42 B | 0644 |
|
license | File | 1.08 KB | 0644 |
|
package.json | File | 3.4 KB | 0644 |
|
readme.md | File | 649 B | 0644 |
|