If you need to integrate your application with Jscrambler please read our documentation.
You can find Jscrambler's client and integrations here.
-
Get your API credentials at https://jscrambler.com/en/account/api_access
-
Copy the pre-defined configuration file that best suite your needs and add there your API credentials and files list.
-
Run the client
java -jar jscrambler-client.jar config.json
OR
JScramblerFacade.process("config.json");
JRE 1.7 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/)
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": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
},
"host": "api.jscrambler.com",
"port": "443",
"apiVersion": "3.8",
"params":{
"rename_local": "%DEFAULT%",
"whitespace": "%DEFAULT%",
"literal_duplicates": "%DEFAULT%"
}
}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.
Type: String
A string value that is used to provide the destination of the JScrambler's output.
Type: String
A string value that is used to provide the JScrambler API with the access key.
Type: String
A string value that is used to sign requests to the JScrambler API.
Type: String
A string value that is used to provide the JScrambler's host.
Type: Number
A number value that is used to provide the JScrambler's port.
Type: String
A string value that is used to select the version of JScrambler.
Type: Boolean
If this is set to true then the project will be deleted from JScrambler after it has been downloaded.
Type: Object
You can find a list of all the possible parameters in here.