hello-world-javascript-action/node_modules/shebang-command
Rachael Sewell 714607abe9 Add node modules and package files 2019-09-06 15:17:38 -07:00
..
index.js Add node_modules 2019-08-06 21:05:52 -07:00
license Add node_modules 2019-08-06 21:05:52 -07:00
package.json Add node modules and package files 2019-09-06 15:17:38 -07:00
readme.md Add node_modules 2019-08-06 21:05:52 -07: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