{"library":"rollup-plugin-preserve-shebang","title":"rollup-plugin-preserve-shebang","description":"A Rollup plugin that automatically preserves a shebang (#!) line from your entry file in the bundle output. Version 1.0.1 is current stable, with maintenance-level activity. Key differentiator: it handles multi-entry setups and allows overriding the shebang string, unlike alternatives that only work with single entries or require manual configuration. It auto-detects the shebang from the entry file or can be explicitly set via plugin options. Supports Rollup 1+ and Node 14+. Lightweight with no dependencies.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-preserve-shebang"],"cli":null},"imports":["import shebang from 'rollup-plugin-preserve-shebang'","import shebang from 'rollup-plugin-preserve-shebang'","export default { plugins: [shebang()] }"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import shebang from 'rollup-plugin-preserve-shebang';\n\nexport default {\n  input: 'src/cli.js',\n  output: {\n    file: 'dist/cli.js',\n    format: 'cjs'\n  },\n  plugins: [\n    shebang()\n  ]\n};","lang":"javascript","description":"Shows basic usage: import the default export, call shebang() in Rollup's plugins array to preserve the shebang from the entry file.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}