caoge c760052ff9 机车状态修改 | 8 months ago | |
---|---|---|
.. | ||
index.js | 8 months ago | |
license | 8 months ago | |
package.json | 8 months ago | |
readme.md | 8 months ago |
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