Skip to content

fedeghe/malta-js-obfuscator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


npm version npm downloads npm downloads

This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin

The options avaialbe are all those available in the javascript-obfuscator package.
As in every malta plugin, options must be passed as shown in the sample usage below.

Sample usage:

@ malta app/source/index.js public/js -plugins=malta-js-obfuscator[compact:false,target:'browser']

or in the .json file :

"app/source/index.js" : "public/js -plugins=malta-js-obfuscator[compact:false,target:'browser']"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/source/index.js',
    'public/js',
    '-plugins=malta-js-obfuscator[compact:false,target:\'browser\']',
    '-options=compact:false'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

For more information about the options checkout the javascript-obfuscator package on npm and the related herokuapp.com page

About

Malta plugin to obfuscate javascript code

Resources

Stars

Watchers

Forks

Packages

No packages published