conventional-changelog-action/node_modules/shebang-command
Conventional Changelog Action 2eb3616352 chore(release): v3.9.1 2021-10-05 21:16:53 +00:00
..
index.js chore(release): v3.9.1 2021-10-05 21:16:53 +00:00
license chore(release): v3.9.1 2021-10-05 21:16:53 +00:00
package.json chore(release): v3.9.1 2021-10-05 21:16:53 +00:00
readme.md chore(release): v3.9.1 2021-10-05 21:16:53 +00:00

readme.md

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.