Bakhtina Sofya 441b76b729 first commit | 3 周之前 | |
---|---|---|
.. | ||
index.js | 3 周之前 | |
license | 3 周之前 | |
package.json | 3 周之前 | |
readme.md | 3 周之前 |
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.