shebang-command

Get the command from a shebang

MIT License

Downloads
288.9M
Stars
22
Committers
2

shebang-command Build Status

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.


Package Rankings
Top 33.9% on Repo1.maven.org
Top 2.43% on Npmjs.org
Badges
Extracted from project README
Build Status