|
|
hace 10 meses | |
|---|---|---|
| .. | ||
| index.js | hace 10 meses | |
| license | hace 10 meses | |
| package.json | hace 10 meses | |
| readme.md | hace 10 meses | |
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.