Dailin 415ba84223 | pirms 4 gadiem | ||
---|---|---|---|
.. | |||
index.js | pirms 4 gadiem | ||
license | pirms 4 gadiem | ||
package.json | pirms 4 gadiem | ||
readme.md | pirms 4 gadiem |
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.