typescript-action/node_modules/shebang-command
Danny McCormick a81e837991 Add github package 2019-07-29 14:53:34 -04:00
..
index.js Add github package 2019-07-29 14:53:34 -04:00
license Add github package 2019-07-29 14:53:34 -04:00
package.json Add github package 2019-07-29 14:53:34 -04:00
readme.md Add github package 2019-07-29 14:53:34 -04: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