🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@bytehide/gulp-shield

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bytehide/gulp-shield

Gulp plugin for ByteHide Shield obfuscation.

1.1.0
latest
npm
Version published
Maintainers
0
Created
Source

gulp-bytehide-shield

A gulp plugin for obfuscating JavaScript code using ByteHide Shield.

Installation

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

Usage

const gulp = require('gulp');
const {bytehideShieldPlugin} = require('@bytehide/gulp-shield');

gulp.task('obfuscate', () => {
  return gulp.src('./src/**/*.js')
    .pipe(bytehideShield({
      projectToken: 'your_project_token_here',      
      replace: false,
      obfuscatedExtension: '.obf',
      exclude: [],
      config: {
        controlFlowFlattening: true,
        debugProtection: true,
        devtoolsBlocking: true
      }
    }))
    .pipe(gulp.dest('./dist'));
});

Options

  • projectToken: Your ByteHide Shield project token (required)
  • replace: Whether to replace original files (default: false)
  • obfuscatedExtension: Extension for obfuscated files (default: '.obf')
  • exclude: Array of files to exclude from obfuscation
  • config: Configuration options for obfuscation
    • controlFlowFlattening: Enable/disable control flow flattening
    • debugProtection: Enable/disable debug protection
    • devtoolsBlocking: Enable/disable devtools blocking

Features

  • Obfuscates JavaScript files
  • Adds watermark to protected files
  • Prevents double obfuscation
  • Supports custom configurations

License

MIT

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

Keywords

gulpplugin

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