Files
release-action/node_modules/shebang-command
Nick Cipollo 2bea8f5693
Some checks failed
PR Checks / check_pr (push) Has been cancelled
Prepare release 1.7.0
2020-05-25 17:22:36 -04:00
..
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -04:00
2020-05-25 17:22:36 -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