caoge c760052ff9 机车状态修改 | 8 kuukautta sitten | |
---|---|---|
.. | ||
index.js | 8 kuukautta sitten | |
license | 8 kuukautta sitten | |
package.json | 8 kuukautta sitten | |
readme.md | 8 kuukautta sitten |
Get the command from a shebang
$ npm install --save shebang-command
const shebangCommand = require('shebang-command');
shebangCommand('#!/usr/bin/env node');
//=> 'node'
shebangCommand('#!/bin/bash');
//=> 'bash'
Type: string
String containing a shebang.
MIT © Kevin Martensson