shebang-command
Get the command from a shebang
Last updated 7 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install shebang-command 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.0                                ...           latest (7 years ago)

4 Versions

  • 2.0.0                                ...           7 years ago
  • 1.2.0                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 160
This Month 243
Last Day 30
Last Week 124
Last Month 620
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |