{"library":"rollup-plugin-shebang-bin","title":"rollup-plugin-shebang-bin","description":"A Rollup plugin (v0.1.0, last updated Dec 2024) for preserving or inserting shebang (#!) lines and setting executable permissions on output files. Supports Rollup 2, 3, and 4 via peer dependency. Configurable patterns, shebang string, separator, insert/preserve behavior, and file mode. Unlike simpler shebang plugins, this one allows separate control over preservation and insertion, plus executable mode setting. Ships TypeScript types and supports both ESM and CJS. Requires Node 14+, actively maintained with a history of dependency upgrades and Rollup version support.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-shebang-bin"],"cli":null},"imports":["import shebang from 'rollup-plugin-shebang-bin'","import shebang from 'rollup-plugin-shebang-bin'","import type { ShebangOptions } from 'rollup-plugin-shebang-bin'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport shebang from 'rollup-plugin-shebang-bin';\n\nexport default {\n  input: 'src/cli.js',\n  output: {\n    dir: 'bin',\n    format: 'cjs'\n  },\n  plugins: [\n    shebang({\n      shebang: '#!/usr/bin/env node',\n      preserve: true,\n      insert: true,\n      executable: true,\n      mode: 0o755,\n      include: ['**/*.js'],\n      exclude: []\n    })\n  ]\n};\n// Then run: rollup -c","lang":"javascript","description":"Minimal rollup config using the plugin with all options explicitly set.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}