# babel-plugin-bin-shebang

> Prepend node shebang to bin files

Latest version **1.0.3** (published 2020-10-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-bin-shebang
pnpm add babel-plugin-bin-shebang
yarn add babel-plugin-bin-shebang
bun add babel-plugin-bin-shebang
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-10-02 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Connor White |
| Maintainers | bconnorwhite |
| Keywords | babel, plugin, bin, shebang, hashbang, babel-plugin, comment, npm, package, json, pkg, prepend, append, node |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-bin-shebang
- Repository: https://github.com/bconnorwhite/babel-plugin-bin-shebang
- Homepage: https://connorwhite.org/github/babel-plugin-bin-shebang
- npm.io page: https://npm.io/package/babel-plugin-bin-shebang

## Dependencies (1)

- [@bconnorwhite/package](https://npm.io/package/@bconnorwhite/package.md) ^4.2.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-10-02
- 1.0.2 — 2020-10-02
- 1.0.1 — 2020-10-02
- 1.0.0 — 2020-10-02

## README

<div align="center">
  <img src="assets/header.svg" />
</div>
<div align="center">
  <a href="https://npmjs.com/package/babel-plugin-bin-shebang">
    <img alt="NPM" src="https://img.shields.io/npm/v/babel-plugin-bin-shebang.svg">
  </a>
  <a href="https://github.com/bconnorwhite/babel-plugin-bin-shebang">
    <img alt="TypeScript" src="https://img.shields.io/github/languages/top/bconnorwhite/babel-plugin-bin-shebang.svg">
  </a>
  <a href='https://coveralls.io/github/bconnorwhite/babel-plugin-bin-shebang?branch=master'>
    <img alt="Coverage Status" src="https://img.shields.io/coveralls/github/bconnorwhite/babel-plugin-bin-shebang.svg?branch=master">
  </a>
  <a href="https://github.com/bconnorwhite/babel-plugin-bin-shebang">
    <img alt="GitHub Stars" src="https://img.shields.io/github/stars/bconnorwhite/babel-plugin-bin-shebang?label=Stars%20Appreciated%21&style=social">
  </a>
  <a href="https://twitter.com/bconnorwhite">
    <img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/bconnorwhite.svg?label=%40bconnorwhite&style=social">
  </a>
</div>

<br />

> Prepend node shebang to bin files.

This shebang will be added to each file listed in the `bin` field of your project's package.json:
```sh
#!/usr/bin/env node
```

## Installation

```sh
yarn add babel-plugin-bin-shebang
```

```sh
npm install babel-plugin-bin-shebang
```

## Usage
In babel.config.json:
```json
{
  "plugins": [
    "babel-plugin-bin-shebang"
  ]
}
```

<br />

<h2>Dependencies<img align="right" alt="dependencies" src="https://img.shields.io/david/bconnorwhite/babel-plugin-bin-shebang.svg"></h2>

- [@bconnorwhite/package](https://www.npmjs.com/package/@bconnorwhite/package): A utility for reading package.json of a project, and forming paths relative to it.

<br />

<h2>Dev Dependencies<img align="right" alt="David" src="https://img.shields.io/david/dev/bconnorwhite/babel-plugin-bin-shebang.svg"></h2>

- [@babel/core](https://www.npmjs.com/package/@babel/core): Babel compiler core.
- [@babel/types](https://www.npmjs.com/package/@babel/types): Babel Types is a Lodash-esque utility library for AST nodes
- [@bconnorwhite/bob](https://www.npmjs.com/package/@bconnorwhite/bob): Bob is a toolkit for TypeScript projects
- [@types/node](https://www.npmjs.com/package/@types/node): TypeScript definitions for Node.js

<br />

<h2>License <img align="right" alt="license" src="https://img.shields.io/npm/l/babel-plugin-bin-shebang.svg"></h2>

[MIT](https://opensource.org/licenses/MIT)

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