{"library":"rollup-plugin-cli","title":"Rollup Plugin CLI","description":"A rollup plugin that prepends a hashbang (shebang) line to bundled JavaScript files for CLI use. The current stable version is 0.1.5. The plugin is minimalist and has no notable release cadence. It differentiates itself by being a straightforward, small plugin that simply adds a hashbang to the output bundle, allowing Rollup to generate executable CLI scripts. It supports a configurable hashbang via options and has no dependencies. It is only useful for Node.js CLI projects built with Rollup and should not be used for browser bundles.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-cli"],"cli":null},"imports":["import cli from 'rollup-plugin-cli'","plugins: [ cli() ]","import cli from 'rollup-plugin-cli'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport cli from 'rollup-plugin-cli';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'bin/cli.js',\n    format: 'cjs'\n  },\n  plugins: [\n    cli() // adds #!/usr/bin/env node\n  ]\n};","lang":"javascript","description":"Minimal Rollup configuration that adds a Node.js hashbang to the output bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}