1.1.0 • Published 11 months ago

@bytehide/gulp-shield v1.1.0

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

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

1.1.0

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago