Bolshakova Anna 3f5a62a82d lab | 3 weeks ago | |
---|---|---|
.. | ||
index.js | 3 weeks ago | |
license | 3 weeks ago | |
package.json | 3 weeks ago | |
readme.md | 3 weeks ago |
Get the command from a shebang
$ npm install shebang-command
const shebangCommand = require('shebang-command');
shebangCommand('#!/usr/bin/env node');
//=> 'node'
shebangCommand('#!/bin/bash');
//=> 'bash'
Type: string
String containing a shebang.