Bolshakova Anna 3f5a62a82d lab | il y a 3 semaines | |
---|---|---|
.. | ||
index.js | il y a 3 semaines | |
license | il y a 3 semaines | |
package.json | il y a 3 semaines | |
readme.md | il y a 3 semaines |
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.