odin-js-fundamentals-part-4/node_modules/shebang-command
NetMan 65754e6d19 Ran npm install for whole directory 2024-01-05 20:30:21 +01:00
..
index.js Ran npm install for whole directory 2024-01-05 20:30:21 +01:00
license Ran npm install for whole directory 2024-01-05 20:30:21 +01:00
package.json Ran npm install for whole directory 2024-01-05 20:30:21 +01:00
readme.md Ran npm install for whole directory 2024-01-05 20:30:21 +01: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.