summit/frontend/node_modules/shebang-command
mula.liu eb63677c25 0.0.9 2025-12-09 00:31:30 +08:00
..
index.js 0.0.9 2025-12-09 00:31:30 +08:00
license 0.0.9 2025-12-09 00:31:30 +08:00
package.json 0.0.9 2025-12-09 00:31:30 +08:00
readme.md 0.0.9 2025-12-09 00:31:30 +08: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.