hello-world-javascript-action/node_modules/shebang-command
Rachael Sewell e84489cd02 Update README and remove toolkit archives 2019-09-06 15:02:37 -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 Update README and remove toolkit archives 2019-09-06 15:02:37 -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