You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@bytehide/rollup-shield

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytehide/rollup-shield

ByteHide Shield plugin for Rollup

1.1.0
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

@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! 🛡️

Keywords

rollup-plugin

FAQs

Package last updated on 17 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts