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