1.0.3 • Published 4 years ago

babel-plugin-bin-shebang v1.0.3

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

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:

#!/usr/bin/env node

Installation

yarn add babel-plugin-bin-shebang
npm install babel-plugin-bin-shebang

Usage

In babel.config.json:

{
  "plugins": [
    "babel-plugin-bin-shebang"
  ]
}
  • @bconnorwhite/package: A utility for reading package.json of a project, and forming paths relative to it.

MIT