Skip to content

80477286/rollup-obfuscator

 
 

Repository files navigation

Rollup Obfuscator

A plugin to obfuscate javascript for rollup & vite based on javascript-obfuscator

Install

npm install -D rollup-obfuscator

Use

import { obfuscator } from 'rollup-obfuscator';

...
plugins: [
    ...
    obfuscator()
    ...
]
...

Config

All config options can be found here and are passed into the obfuscator plugin like this:

obfuscator({
    // options
})

You can also pass in the following additional options:

  • global - It's recommended to keep this enabled, since it might cause issues. However if you need access to include and exclude options you can disable this

  • include - A FilterPattern of files to include. By default only allows js/ts files - only works with global set to false

  • exclude - A FilterPattern of files to exclude. By default ignores node_modules - only works with global set to false

Support

About

A plugin to obfuscate javascript for rollup based on https://www.npmjs.com/javascript-obfuscator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.6%
  • JavaScript 8.4%