aoc/node_modules/shebang-command
alex ab688f8b38 solutions 2022-12-03 17:11:42 -05:00
..
index.js solutions 2022-12-03 17:11:42 -05:00
license solutions 2022-12-03 17:11:42 -05:00
package.json solutions 2022-12-03 17:11:42 -05:00
readme.md solutions 2022-12-03 17:11:42 -05: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.