Bolshakova Anna 3f5a62a82d lab | há 3 semanas atrás | |
---|---|---|
.. | ||
index.js | há 3 semanas atrás | |
license | há 3 semanas atrás | |
package.json | há 3 semanas atrás | |
readme.md | há 3 semanas atrás |
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.