1
0
Fork 0
mirror of synced 2026-06-05 18:48:19 +00:00
login/node_modules/shebang-command
2024-01-09 11:08:09 +08:00
..
index.js prepare release v1.6.0 2024-01-09 11:08:09 +08:00
license prepare release v1.6.0 2024-01-09 11:08:09 +08:00
package.json prepare release v1.6.0 2024-01-09 11:08:09 +08:00
readme.md prepare release v1.6.0 2024-01-09 11:08:09 +08: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.