codeql-action/node_modules/shebang-command
github-actions[bot] 0da815296a Update checked-in dependencies 2022-02-24 17:03:29 +00:00
..
index.js Update checked-in dependencies 2021-08-09 19:49:49 +00:00
license Update checked-in dependencies 2021-08-09 19:49:49 +00:00
package.json Update checked-in dependencies 2022-02-24 17:03:29 +00:00
readme.md Update checked-in dependencies 2021-08-09 19:49:49 +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.