|
|
3 vuotta sitten | |
|---|---|---|
| .. | ||
| index.js | 3 vuotta sitten | |
| license | 3 vuotta sitten | |
| package.json | 3 vuotta sitten | |
| readme.md | 3 vuotta sitten | |
Get the command from a shebang
$ npm install --save shebang-command
const shebangCommand = require('shebang-command');
shebangCommand('#!/usr/bin/env node');
//=> 'node'
shebangCommand('#!/bin/bash');
//=> 'bash'
Type: string
String containing a shebang.
MIT © Kevin Martensson