Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

js-obfuscator-api

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-obfuscator-api

Obfuscate JavaScript files via the formal (paid) API of http://javascriptobfuscator.com.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
265
increased by79.05%
Maintainers
1
Weekly downloads
 
Created
Source

JS Obfuscator Grunt Task

Obfuscate your JS code using the formal (paid) HTTP API of http://www.javascriptobfuscator.com.

You need a Premium Membership Subscription in order to use this package.

Usage

Install using NPM:

$ npm i -D js-obfuscator-api

Gruntfile.js:

module.exports = function (grunt) {
    require('js-obfuscator-api')(grunt);

    grunt.initConfig({

        obfuscate: {
            dist: {
                src: 'dist/bundle.js',
                dest: 'dist/bundle.js',
                obfuscateOptions: {
                    APIKey: process.env.OBFUSCATOR_API_KEY,
                    APIPwd: process.env.OBFUSCATOR_API_PWD,
                    VariableExclusion: '^_get_ ^_set_ ^_mtd_',
                    EncodeStrings: true,
                    MoveStrings: true,
                    ReplaceNames: true,
                    WriteFormats_KeepIndent: false
                }
            }
        }
        
    });

    grunt.registerTask('deploy', ['obfuscate:dist']);
};

Check out the default options and read more about obfuscation options at: https://service.javascriptobfuscator.com/httpapi.asmx?WSDL.

API key and password:

It is NOT recommended to put these hard coded in Gruntfile.js. You should pass them as environment variables using process.env.

FAQs

Package last updated on 12 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc