Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bconnorwhite/babel-plugin-bin-shebang
- Owner: bconnorwhite
- Created: 2020-10-01T05:20:25.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T05:59:26.000Z (over 4 years ago)
- Last Synced: 2024-11-14T11:33:28.808Z (3 months ago)
- Topics: babel, babel-plugin, hashbang, node, nodejs, npm, shebang
- Language: TypeScript
- Homepage: https://connorwhite.org/github/babel-plugin-bin-shebang
- Size: 160 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
> 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"
]
}
```
Dependencies
- [@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 Dependencies
- [@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
[MIT](https://opensource.org/licenses/MIT)