challenge-algorithms-v2.0-D.../node_modules/shebang-command
2022-10-27 16:56:30 -03:00
..
index.js Desaio 01 concluido 2022-10-27 16:56:30 -03:00
license Desaio 01 concluido 2022-10-27 16:56:30 -03:00
package.json Desaio 01 concluido 2022-10-27 16:56:30 -03:00
readme.md Desaio 01 concluido 2022-10-27 16:56:30 -03: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.