Coder Social home page Coder Social logo

java-jscrambler's Introduction

java-jscrambler

  1. Get your API credentials at https://jscrambler.com/en/account/api_access

  2. Copy the pre-defined configuration file that best suite your needs and add there your API credentials and files list.

  3. Run the client

    CLI

    java -jar jscrambler-client.jar config.json

    OR

    API

    JScramblerFacade.process("config.json");

Requirements

JRE 1.6 or above (http://www.oracle.com/technetwork/java/javase/downloads/index.html) Apache HttpComponents 4.1.2 or above (http://hc.apache.org/downloads.cgi) JSON in Java (http://json.org/java/)

Configuration

Your JScrambler's project configuration is achieved through a JSON file with the following structure:

{
  "filesSrc": ["index.js", "lib/**/*.js", "lib/*.js"],
  "filesDest": "dist/",
  "keys": {
    "accessKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "secretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  },
  "params": {
    "rename_local": "%DEFAULT%",
    "whitespace": "%DEFAULT%",
    "literal_duplicates": "%DEFAULT%"
  }
}

Options

filesSrc

Type: Array

An array of string values with paths to the source files of your project that you wish to send to the JScrambler services. It supports minimatch/glob.

filesDest

Type: String

A string value that is used to provide the destination of the JScrambler's output.

keys.accessKey

Type: String

A string value that is used to provide the JScrambler API with the access key.

keys.secretKey

Type: String

A string value that is used to sign requests to the JScrambler API.

host

Type: String

A string value that is used to provide the JScrambler's host.

port

Type: Number

A number value that is used to provide the JScrambler's port.

apiVersion

Type: String

A string value that is used to select the version of JScrambler.

deleteProject

Type: Boolean

If this is set to true then the project will be deleted from JScrambler after it has been downloaded.

params

Type: Object

You can find a list of all the possible parameters in here.

java-jscrambler's People

Contributors

magalhas avatar

Watchers

Tom Barber avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.