Need private packages and team management tools?Check out npm Teams »

shebang-command

2.0.0 • Public • Published

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.

Install

npm i shebang-command

DownloadsWeekly Downloads

18,698,900

Version

2.0.0

License

MIT

Unpacked Size

2.56 kB

Total Files

4

Last publish

Collaborators

  • avatar