archieve-projects/微信机器人/node_modules/shebang-command
Li Wei 6d6bcf309d backup: 2025-02-24 2025-02-24 15:22:12 +08:00
..
index.js backup: 2025-02-24 2025-02-24 15:22:12 +08:00
license backup: 2025-02-24 2025-02-24 15:22:12 +08:00
package.json backup: 2025-02-24 2025-02-24 15:22:12 +08:00
readme.md backup: 2025-02-24 2025-02-24 15:22:12 +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.