Pibd-21_Ievlewa_M.D._Intern.../node_modules/shebang-command/readme.md

35 lines
495 B
Markdown
Raw Normal View History

2023-12-03 19:52:09 +04:00
# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command)
> Get the command from a shebang
## Install
```
2023-12-22 00:41:43 +04:00
$ npm install shebang-command
2023-12-03 19:52:09 +04:00
```
## Usage
```js
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.