shebang-command (2.0.0)
Published 2026-02-24 14:05:01 +00:00 by atheaadmin
Installation
registry=npm install shebang-command@2.0.0"shebang-command": "2.0.0"About this package
shebang-command 
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.
Dependencies
Dependencies
| ID | Version |
|---|---|
| shebang-regex | ^3.0.0 |
Development Dependencies
| ID | Version |
|---|---|
| ava | ^2.3.0 |
| xo | ^0.24.0 |
Keywords
cmd
command
parse
shebang