|
|
8 months ago | |
|---|---|---|
| .. | ||
| index.js | 11 months ago | |
| license | 11 months ago | |
| package.json | 8 months ago | |
| readme.md | 11 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.