Bakhtina Sofya b84cb877be 1st comm | hace 3 semanas | |
---|---|---|
.. | ||
index.js | hace 3 semanas | |
license | hace 3 semanas | |
package.json | hace 3 semanas | |
readme.md | hace 3 semanas |
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.