# rollup-plugin-preserve-shebang **Repository Path**: mirrors_developit/rollup-plugin-preserve-shebang ## Basic Information - **Project Name**: rollup-plugin-preserve-shebang - **Description**: Rollup plugin to automatically preserve shebangs in entry modules. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # rollup-plugin-preserve-shebang Automatically preserve a shebang in your entry file. If you're building CLI's with Rollup, this will fix your npm `bin` being broken :) ## Installation `npm i -D rollup-plugin-preserve-shebang` ## Usage ```js import shebang from 'rollup-plugin-preserve-shebang'; export default { plugins: [ shebang() ] } ``` ```js shebang({ // Override the entry. By default, uses `input` from config: entry: path.resolve(process.cwd(), 'src/foo.js'), // You can also set it manually if you want, which will always prepend it: shebang: '#!/usr/bin/env node' }) ``` ## License MIT