mirror-rhinstaller-node-cache/shebang-command
2026-07-22 07:58:23 +00:00
..
index.js 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
license 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
package.json 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00:00
readme.md 70a54663980edde26ebea82117fe36be1872d66a4e0b8026c243e93fe6b54685 package.json 2026-07-22 07:58:23 +00: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.