1.1.0 • Published 11 months ago

@bytehide/rollup-shield v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

@bytehide/rollup-shield

A Rollup plugin for obfuscating JavaScript code using ByteHide Shield.

Installation

npm install @bytehide/rollup-shield --save-dev

Usage

// rollup.config.js
import ByteHideShieldPlugin from '@bytehide/rollup-shield';

export default {
  input: 'src/index.js',
  output: {
    dir: 'dist',
    format: 'es'
  },
  plugins: [
    ByteHideShieldPlugin({
      projectToken: 'your-bytehide-token',
      // Optional configurations
      distDir: 'dist',
      replace: false,
      obfuscatedExtension: '.obf',
      exclude: ['excluded.js'],
      config: {
        controlFlowFlattening: true,
        debugProtection: false,
        devtoolsBlocking: false,
      }
    })
  ]
};

Options

  • projectToken (required): Your ByteHide project token
  • distDir (optional): Output directory (default: 'dist')
  • replace (optional): Replace original files (default: false)
  • obfuscatedExtension (optional): Extension for obfuscated files (default: '.obf')
  • exclude (optional): Array of files to exclude from obfuscation
  • config (optional): ByteHide Shield configuration options

License

MIT


Happy coding but keep it safe with @bytehide/rollup-shield! 🛡️

1.1.0

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago