malta-js-obfuscator

1.0.16 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i malta-js-obfuscator

    Weekly Downloads

    31

    Version

    1.0.16

    License

    MIT

    Unpacked Size

    3.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • fedeghe