webhook/node_modules/shebang-command
Joel Male 1ada95e04a
v2.0.0 (#12)
- Convert project to Javascript/Typescript
- Allow custom headers to be passed in (optional)
- Allow body to be optional
2020-08-26 10:52:47 +10:00
..
index.js v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
license v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
package.json v2.0.0 (#12) 2020-08-26 10:52:47 +10:00
readme.md v2.0.0 (#12) 2020-08-26 10:52:47 +10:00

shebang-command Build Status

Get the command from a shebang

Install

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