git.iko.soy/rowtype-yoga/yoga-r3f
on main help sign in
34 lines 495 B history raw
1# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command)
3> Get the command from a shebang
6## Install
8```
9$ npm install shebang-command
10```
13## Usage
15```js
16const shebangCommand = require('shebang-command');
18shebangCommand('#!/usr/bin/env node');
19//=> 'node'
21shebangCommand('#!/bin/bash');
22//=> 'bash'
23```
26## API
28### shebangCommand(string)
30#### string
32Type: `string`
34String containing a shebang.