rollup-plugin-bin

🐴 rollup plugin inject execute header

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
rollup-plugin-bin
1.0.05 years ago5 years agoMinified + gzip package size for rollup-plugin-bin in KB

Readme

rollup-plugin-bin

🐴 Inject the executable script type rollup plugin in the header

#!/usr/bin/env node ```js const ts = require('rollup-plugin-typescript2') const bin = require('rollup-plugin-bin') module.exports = { input: './src/index.ts', output: {
file: './bin/outfile.js',
format: 'cjs',
}, plugins:
// other plugins...
bin(
// you can customize it here...
),
, } ```