- License
- MIT
- Install Size
- 2.6 kB(5.4 kB)
- Vulns
- 0
- Published
$
npm install shebang-command$
pnpm add shebang-command$
yarn add shebang-command$
bun add shebang-command$
deno add npm:shebang-command$
vlt install shebang-command$
vp add shebang-commandshebang-command 
Get the command from a shebang
Install
$ npm install shebang-command
Usage
const shebangCommand = require('shebang-command');
shebangCommand('#!/usr/bin/env node');
//=> 'node'
shebangCommand('#!/bin/bash');
//=> 'bash'
API
shebangCommand(string)
string
Type: string
String containing a shebang.