Dailin 415ba84223 | 3 jaren geleden | ||
---|---|---|---|
.. | |||
index.js | 3 jaren geleden | ||
license | 3 jaren geleden | ||
package.json | 3 jaren geleden | ||
readme.md | 3 jaren geleden |
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.