gulp-jscrambler
Obfuscate your source files.
Install
Install with npm.
npm install --save-dev gulp-jscrambler
Examples
var gulp = require('gulp');
var jScrambler = require('gulp-jscrambler');
gulp.task('default', function () {
gulp
.src('app/**/*.js')
.pipe(jScrambler({
keys: {
accessKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
secretKey: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
},
deleteProject: true
}))
.pipe(gulp.dest('dist/'));
});
Options
keys.accessKey
Type: String
A string value that is used to provide the JScrambler API with the access key.
keys.secretKey
Type: String
A string value that is used to sign requests to the JScrambler API.
deleteProject
Type: Boolean
If this is set to true
then the project will be deleted from JScrambler after it has been downloaded.
params
Type: Object
You can find a list of all the possible parameters in here.