Gulp plugin for javascript-obfuscator package.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 279d7f7 Dec 1, 2017
Permalink
Failed to load latest commit information.
README.md -Minor README fix Nov 13, 2017
index.js Avoid file duplication Nov 30, 2017
package.json -Version bump Dec 1, 2017

README.md

gulp-javascript-obfuscator

Gulp plugin for javascript-obfuscator.

Installation

Install the package with NPM:

npm install --save gulp-javascript-obfuscator

Usage

var gulp = require('gulp'),
    javascriptObfuscator = require('gulp-javascript-obfuscator');


gulp.src('file.js')
    .pipe(javascriptObfuscator())
    .pipe(gulp.dest('dist'));

Options

Pass any options available in the obfuscator.

gulp.src('file.js')
    .pipe(javascriptObfuscator({
        compact:true,
        sourceMap: true
    }))
    .pipe(gulp.dest('dist'));

Using sourceMap option with value set to true will also output a .map file to Gulp stream.