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