{"library":"rollup-plugin-replace-shebang","title":"rollup-plugin-replace-shebang","description":"A Rollup plugin that preserves and relocates shebang (#!) from entry files to the output bundle. Version 2.0.0, released with breaking changes in file paths (ESM: dist/index.mjs, CJS: dist/index.cjs, types: dist/index.d.mts and dist/index.d.cts). Supports include/exclude glob patterns, template variables in shebang (${name}, ${version}), chmod auto-set executable permissions, and skipBackslash option. Ships TypeScript types, requires Rollup >= 2.0.0 and Node >= 12. Differentiators: simple API, template variables, chmod support, and pattern filtering unlike alternative plugins.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-replace-shebang"],"cli":null},"imports":["import replaceShebang from 'rollup-plugin-replace-shebang'","import type { Options } from 'rollup-plugin-replace-shebang'","import type { ShebangPluginApi } from 'rollup-plugin-replace-shebang'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport replaceShebang from 'rollup-plugin-replace-shebang'\n\nexport default {\n  input: 'src/cli.js',\n  output: {\n    file: 'dist/cli.js',\n    format: 'es'\n  },\n  plugins: [\n    replaceShebang({\n      shebang: '#!/usr/bin/env node',\n      skipBackslash: true,\n      chmod: true\n    })\n  ]\n}","lang":"typescript","description":"Demonstrates basic usage: preserving a shebang from entry file to output bundle with options shebang, skipBackslash, and chmod.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}