Obfuscate your source files using the JScrambler API.
Obfuscate your source files.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-jscrambler --save-dev
In your project's Gruntfile, add a section named
jscrambler to the data object passed into
gruntinitConfigjscrambler:main:options:keys:accessKey: ''secretKey: ''params:rename_local: '%DEFAULT%'whitespace: '%DEFAULT%'files:src: 'foo.js' 'bar.js' dest: 'output/';
A string value that is used to provide the JScrambler API with the access key.
A string value that is used to sign requests to the JScrambler API.
A string value that is used to provide the JScrambler's host.
A number value that is used to provide the JScrambler's port.
A string value that is used to select the version of JScrambler.
If this is set to
true then the project will be deleted from JScrambler after it has been downloaded.
You can find a list of all the possible parameters in here.
Usage examples are given in the examples directory.