Philipp Horstenkamp f3e1a62935
All checks were successful
Lint / pre-commit Linting (push) Successful in 44s
Dependency update
2025-04-08 22:05:18 +02:00

495 B

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.