
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@bytehide/grunt-shield
Advanced tools
A Grunt plugin for protecting JavaScript files using ByteHide Shield obfuscation.
npm install @bytehide/grunt-shield --save-dev
Add this to your Gruntfile.js:
module.exports = function (grunt) {
grunt.initConfig({
bytehideShield: {
options: {
projectToken: 'your-bytehide-token', // or use process.env.BYTEHIDE_TOKEN
distDir: 'dist', // Directory containing files to protect
replace: false, // Replace original files or create new ones
obfuscatedExtension: '.obf', // Extension for protected files
exclude: [], // Files to exclude from protection
config: {
controlFlowFlattening: true,
debugProtection: false,
devtoolsBlocking: false,
}
},
dist: {}
}
});
grunt.loadNpmTasks('@bytehide/grunt-shield');
};
Run the task:
grunt bytehideShield
projectToken
: Your ByteHide project token (required)distDir
: Directory containing files to protect (default: 'dist')replace
: Whether to replace original files (default: false)obfuscatedExtension
: Extension for protected files (default: '.obf')exclude
: Array of filenames to exclude from protectionconfig
: ByteHide Shield configuration options
controlFlowFlattening
: Enable control flow flatteningdebugProtection
: Enable debug protectiondevtoolsBlocking
: Enable devtools blockingMIT
Happy coding but keep it safe with @bytehide/grunt-shield
! 🛡️
FAQs
Grunt plugin for ByteHide Shield code obfuscation
The npm package @bytehide/grunt-shield receives a total of 18 weekly downloads. As such, @bytehide/grunt-shield popularity was classified as not popular.
We found that @bytehide/grunt-shield demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.