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