Rollup plugin that prepends an executable shebang (#!/usr/bin/env node) to the output bundle, enabling CLI scripts. Version 1.0.0, stable but minimal, with no releases since 2020. Differentiators: lightweight, no dependencies, works with any output format. Not actively maintained; alternatives include @rollup/plugin-banner or manual banner injection.
npm install rollup-plugin-binVerified import paths — ran on the pinned version, not inferred.
Basic rollup config adding shebang to a CLI output file using rollup-plugin-bin.
Use chmod +x after build, or configure output.permissions in rollup.
Use @rollup/plugin-banner with custom shebang or fork plugin.
Consider migrating to @rollup/plugin-banner or include banner manually via output.banner.
Use import bin from 'rollup-plugin-bin' or const bin = require('rollup-plugin-bin').default.Run npm install rollup-plugin-bin --save-dev and ensure correct require/import.
No dependency data recorded yet.