{"library":"rollup-plugin-post-obfuscator","title":"rollup-plugin-post-obfuscator","description":"Rollup plugin that obfuscates JavaScript output after the bundle is generated. Current stable version is 1.0.0. It leverages javascript-obfuscator under the hood and supports dynamic import obfuscation, inclusion/exclusion patterns, and source map handling. Unlike other obfuscation plugins that operate during the build process, this plugin post-processes the output, making it compatible with various output formats and easier to integrate. It ships TypeScript types and requires Node >=16 and Rollup <5.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-post-obfuscator"],"cli":null},"imports":["import obfuscator from 'rollup-plugin-post-obfuscator'","import obfuscator from 'rollup-plugin-post-obfuscator';\nexport default { plugins: [obfuscator()] }","import type { ObfuscatorOptions } from 'rollup-plugin-post-obfuscator'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport obfuscator from 'rollup-plugin-post-obfuscator';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    obfuscator({\n      outDir: 'dist',\n      include: ['**/*.js'],\n      exclude: ['vendor/**'],\n      JavaScriptObfuscatorOptions: {\n        compact: true,\n        controlFlowFlattening: true,\n      },\n    }),\n  ],\n};","lang":"javascript","description":"Basic Rollup config using the obfuscator plugin with typical options including include/exclude patterns and custom javascript-obfuscator options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}