Bakhtina Sofya b84cb877be 1st comm | hai 2 semanas | |
---|---|---|
.. | ||
index.js | hai 2 semanas | |
license | hai 2 semanas | |
package.json | hai 2 semanas | |
readme.md | hai 2 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.