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