{"library":"rollup-plugin-bookmarklet","title":"rollup-plugin-bookmarklet","description":"Rollup plugin that prepends the 'javascript:' prefix to the bundle output, converting a script into a bookmarklet. Current stable version is 5.0.12, released under a semver cadence. It supports Rollup v2, v3, and v4. Unlike manual prefixing, this plugin integrates seamlessly into the build pipeline and works with minifiers like @rollup/plugin-terser. It ships TypeScript type definitions and requires Node.js >=18. Key differentiator: minimal, focused plugin that does one thing with zero configuration.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-bookmarklet"],"cli":null},"imports":["import bookmarklet from 'rollup-plugin-bookmarklet'","import type { BookmarkletOptions } from 'rollup-plugin-bookmarklet'","bookmarklet()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import bookmarklet from 'rollup-plugin-bookmarklet';\nimport terser from '@rollup/plugin-terser';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'bundle.js',\n    format: 'iife'\n  },\n  plugins: [\n    terser(),\n    bookmarklet()\n  ]\n};","lang":"javascript","description":"Shows how to configure Rollup with the bookmarklet plugin to produce a minified bookmarklet.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}