Bakhtina Sofya 441b76b729 first commit | 3 veckor sedan | |
---|---|---|
.. | ||
index.js | 3 veckor sedan | |
license | 3 veckor sedan | |
package.json | 3 veckor sedan | |
readme.md | 3 veckor sedan |
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.