Obfuscate and protect your Rollup bundle with JavaScript Obfuscator. Official Rollup plugin for javascriptobfuscator.com: string encryption, control-flow flattening, member renaming.
This package is a thin, officially maintained wrapper around the Rollup
integration that already ships inside
javascriptobfuscator-com. It exists so the
plugin can be found under the name people search for. The implementation is
identical to require("javascriptobfuscator-com/rollup") - installing this package installs
javascriptobfuscator-com as a dependency and re-exports it unchanged.
npm install --save-dev rollup-plugin-jso-obfuscatorimport jsoObfuscator from "rollup-plugin-jso-obfuscator";
export default {
input: "src/index.js",
output: { dir: "dist", format: "es" },
plugins: [
jsoObfuscator({ preset: "balanced" })
]
};Every option accepted by javascriptobfuscator-com is accepted here. See the
option reference and the
npm CLI guide.
javascriptobfuscator-com ships a one-command config converter:
npx javascriptobfuscator migrate --from javascript-obfuscatorSee MIGRATION.md for the mapping table and what does and does not carry across.
Proprietary. This software is licensed, not sold - see LICENSE. A free tier is
available; paid plans are published at
https://javascriptobfuscator.com/premium-membership.aspx.