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