odin-javascript-exercises/node_modules/shebang-command
Tatiana 2537c2e6e2 Revert "remove node_modules"
This reverts commit 2fb5731f23.
2021-05-08 11:15:45 -07:00
..
index.js Revert "remove node_modules" 2021-05-08 11:15:45 -07:00
license Revert "remove node_modules" 2021-05-08 11:15:45 -07:00
package.json Revert "remove node_modules" 2021-05-08 11:15:45 -07:00
readme.md Revert "remove node_modules" 2021-05-08 11:15:45 -07:00

shebang-command Build Status

Get the command from a shebang

Install

$ npm install --save 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.

License

MIT © Kevin Martensson