N00b's Programming Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

gulp-js-obfuscator

1.0.0 • Public • Published

gulp-js-obfuscator

Gulp plugin for js-obfuscator.

Installation

Install the package with NPM and add it to your development dependencies:

npm install --save-dev gulp-js-obfuscator

Usage

var gulp = require('gulp'),
    js_obfuscator = require('gulp-js-obfuscator');
 
var path = {
    build: {
      js: 'out/',
    },
    src: {
      js: 'src/**/*.js',
    }
};
 
gulp.src(path.src.js)
    .pipe(js_obfuscator({}, ["**/jquery-*.js"]))
    .pipe(gulp.dest(path.build.js));

Options

obfuscatorOptions

Type: Object Default: null Options for js-obfuscator. Should be passed exactly like described on their page.

excludes

Type: Array or String Default: [] Examples: ["**/jquery-*.js", "**/*.min.js"] or "**/jquery-*.js" Can be used to bypass obfuscation of some files.

install

npm i gulp-js-obfuscator

Downloadsweekly downloads

1,927

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability