codecov-action/node_modules/shebang-command
2019-11-12 11:29:27 -08:00
..
index.js test inputs 2019-11-12 11:29:27 -08:00
license test inputs 2019-11-12 11:29:27 -08:00
package.json test inputs 2019-11-12 11:29:27 -08:00
readme.md test inputs 2019-11-12 11:29:27 -08:00

shebang-command Build Status

Get the command from a shebang

Install

$ npm install --save 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.

License

MIT © Kevin Martensson