rollup-plugin-cli

0.1.5 • Public • Published

rollup-plugin-cli

A rollup plugin to prefix scripts for CLI usage

Installation

$ npm install rollup-plugin-cli

Usage

By default, rollup-plugin-cli will prefix your bundle with #!/usr/bin/env node.

import cli from 'rollup-plugin-cli';
 
export default {
    main: 'main.js',
    plugins: [ cli() ]
};

If the default hashbang doesn't fit your needs, you can pass a custom value.

import cli from 'rollup-plugin-cli';
 
export default {
    main: 'main.js',
    plugins: [ cli( { hashbang: '#!/my/custom/hashbang' } ) ]
};

Readme

Keywords

Package Sidebar

Install

npm i rollup-plugin-cli

Weekly Downloads

1

Version

0.1.5

License

MIT

Last publish

Collaborators

  • tkuminecz