ljubi a81aaebda8 3 tests | 5 months ago | |
---|---|---|
.. | ||
index.js | 5 months ago | |
license | 5 months ago | |
package.json | 5 months ago | |
readme.md | 5 months ago |
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.