Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
index.js | D | 12-May-2024 | 346 | 20 | 15 | |
license | D | 12-May-2024 | 1.1 KiB | 22 | 17 | |
package.json | D | 12-May-2024 | 1.6 KiB | 72 | 71 | |
readme.md | D | 12-May-2024 | 567 | 40 | 21 |
readme.md
1# shebang-command [](https://travis-ci.org/kevva/shebang-command) 2 3> Get the command from a shebang 4 5 6## Install 7 8``` 9$ npm install --save shebang-command 10``` 11 12 13## Usage 14 15```js 16const shebangCommand = require('shebang-command'); 17 18shebangCommand('#!/usr/bin/env node'); 19//=> 'node' 20 21shebangCommand('#!/bin/bash'); 22//=> 'bash' 23``` 24 25 26## API 27 28### shebangCommand(string) 29 30#### string 31 32Type: `string` 33 34String containing a shebang. 35 36 37## License 38 39MIT © [Kevin Martensson](http://github.com/kevva) 40