{"library":"rollup-plugin-javascript-obfuscator","title":"rollup-plugin-javascript-obfuscator","description":"A Rollup plugin that uses javascript-obfuscator to obfuscate bundled JavaScript code. Version 1.0.4 (latest) wraps javascript-obfuscator v4.x, allowing control over obfuscation options directly in the Rollup build pipeline. It supports source maps (inline or separate) and enables protection of emitted code with minimal setup. Differentiates by tightly integrating obfuscation within the bundle output, rather than requiring a separate post-build step.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-javascript-obfuscator"],"cli":null},"imports":["import obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator'","const obfuscatorPlugin = require('rollup-plugin-javascript-obfuscator')","import { rollup } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { rollup } from 'rollup';\nimport obfuscatorPlugin from 'rollup-plugin-javascript-obfuscator';\n\nasync function build() {\n  const bundle = await rollup({\n    input: 'src/index.js',\n    plugins: [\n      obfuscatorPlugin({\n        compact: true,\n        controlFlowFlattening: false,\n        stringArrayEncoding: ['base64']\n      })\n    ]\n  });\n  await bundle.write({ file: 'dist/bundle.js', format: 'esm' });\n}\nbuild().catch(console.error);","lang":"javascript","description":"Complete Rollup build pipeline with obfuscation plugin applied to ES module bundle.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}