This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity.eu/node_modules/shebang-command
2024-03-26 16:28:28 +01:00
..
index.js init commit 2024-03-26 16:28:28 +01:00
license init commit 2024-03-26 16:28:28 +01:00
package.json init commit 2024-03-26 16:28:28 +01:00
readme.md init commit 2024-03-26 16:28:28 +01: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.