Urara-Blog/node_modules/.pnpm-store/v3/files/cf/8273a0c186aab33aa4a13f01f86060d390fd4df086579f671b783a91adb95e72dbc5aa91987a02747fd00e346bdcf5089a70976bc72f5904fc27d6c5559b4e
2022-08-14 01:14:53 +08:00

34 lines
495 B
Text

# 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
```
$ npm install shebang-command
```
## 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.