Gulp plugin for ByteHide Shield obfuscation.
npm install @bytehide/gulp-shieldA gulp plugin for obfuscating JavaScript code using ByteHide Shield.
``bash`
npm install @bytehide/gulp-shield --save-dev
`javascript
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'));
});
`
- 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 obfuscationconfig
- : Configuration options for obfuscationcontrolFlowFlattening
- : Enable/disable control flow flatteningdebugProtection
- : Enable/disable debug protectiondevtoolsBlocking
- : Enable/disable devtools blocking
- Obfuscates JavaScript files
- Adds watermark to protected files
- Prevents double obfuscation
- Supports custom configurations
MIT
---
Happy coding but keep it safe with @bytehide/gulp-shield`! 🛡️