greg 4d1d2f8c52
Some checks failed
continuous-integration/drone Build is failing
maj
2023-06-11 20:17:11 +02:00
..
maj
2023-06-11 20:17:11 +02:00
maj
2023-06-11 20:17:11 +02:00
maj
2023-06-11 20:17:11 +02:00
maj
2023-06-11 20:17:11 +02: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