@robmarr/rollup-plugin-shebang

1.0.1 • Public • Published

rollup-plugin-shebang

XO code style Coverage Status

A Rollup plugin to add a shebang to the top of a bundle.

Usage

Install the plugin with NPM:

npm i -D @robmarr/rollup-plugin-shebang

Add it to your rollup configuration:

import shebang from '@robmarr/rollup-plugin-shebang'

export default {
  plugins: [
    shebang()
  ]
}

by default #!/usr/bin/env node is added but an alternative shebang can be used by passing it as an argument.

import shebang from '@robmarr/rollup-plugin-shebang'

export default {
  plugins: [
    shebang('#!/usr/local/bin/node')
  ]
}

Thanks

yingye for rollup-plugin-banner, it was the template for this plugin.

Package Sidebar

Install

npm i @robmarr/rollup-plugin-shebang

Weekly Downloads

6

Version

1.0.1

License

ISC

Unpacked Size

273 kB

Total Files

5

Last publish

Collaborators

  • robinmarr