Emmanuil 73a9f0ffcf 20.07.2020 4 anos atrás
..
index.js 73a9f0ffcf 20.07.2020 4 anos atrás
license 73a9f0ffcf 20.07.2020 4 anos atrás
package.json 73a9f0ffcf 20.07.2020 4 anos atrás
readme.md 73a9f0ffcf 20.07.2020 4 anos atrás

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.