# shebang-command

> Get the command from a shebang

Latest version **2.0.0** (published 2019-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install shebang-command
pnpm add shebang-command
yarn add shebang-command
bun add shebang-command
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-09-06 |
| First published | 2015-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/shebang-command) |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | cmd, command, parse, shebang |

## Links

- npm: https://www.npmjs.com/package/shebang-command
- Repository: https://github.com/kevva/shebang-command
- Homepage: https://github.com/kevva/shebang-command#readme
- Issues: https://github.com/kevva/shebang-command/issues
- npm.io page: https://npm.io/package/shebang-command

## Dependencies (1)

- [shebang-regex](https://npm.io/package/shebang-regex.md) ^3.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2019-09-06
- 1.2.0 — 2016-09-22
- 1.1.0 — 2016-04-07
- 1.0.0 — 2015-12-04

## README

# 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.

---
_Source: https://npm.io/package/shebang-command · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
