Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bconnorwhite/babel-plugin-bin-shebang

Prepend node shebang to bin files
https://github.com/bconnorwhite/babel-plugin-bin-shebang

babel babel-plugin hashbang node nodejs npm shebang

Last synced: 2 months ago
JSON representation

Prepend node shebang to bin files

Awesome Lists containing this project

README

        






NPM


TypeScript


Coverage Status


GitHub Stars


Twitter Follow


> 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"
]
}
```


Dependenciesdependencies

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


Dev DependenciesDavid

- [@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


License license

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