Skip to content

Tool for obfuscating, compressing Javascript, and collecting static files.

License

Notifications You must be signed in to change notification settings

GoodDay360/JSJumble

Repository files navigation

JSJumble

Tool for obfuscating, compressing Javascript, and collecting static files.

Installation

pip install JSJumble

Getting Started

  • First import JSJumble to your script.

  • [ Required ] Directory that you want to start converting.

import JSJumble

JSJumble.static_dir = "./static"
  • [ Required ] Directory to save converted static.
JSJumble.converted_dir = "./converted"
  • [ Required ] And lastly start the engine.
  • You can access the engine by open up browser and go to the IP and Port that you specified. Default: 127.0.0.1:80
JSJumble.start()
  • [ Optional ] Specify where to save cache file. Default: Current Working Directory
JSJumble.cache_dir = "./cache.sql"
  • [ Optional ] IP that engine will run on. Default: "127.0.0.1"
JSJumble.host = "127.0.0.1"
  • [ Optional ] Port that engine will run on. Default: 80
JSJumble.port = 80
  • [ Optional ] Should engine copy only javascript files or not. Default: False
JSJumble.js_only = False
  • [ Optional ] Should engine delete files inside converted directory that are not listed inside static directory. Default: True
JSJumble.delete_unlisted = True
  • [ Optional ] Engine options that required to start converting. Default: Listed below
  • You can find more additional options in this Github Repo
JSJumble.engine = {
    "compact": True,
    "controlFlowFlattening": False,
    "deadCodeInjection": False,
    "debugProtection": False,
    "debugProtectionInterval": 0,
    "disableConsoleOutput": True,
    "identifierNamesGenerator": "hexadecimal",
    "log": False,
    "numbersToExpressions": False,
    "renameGlobals": False,
    "selfDefending": True,
    "simplify": True,
    "splitStrings": False,
    "stringArray": True,
    "stringArrayCallsTransform": False,
    "stringArrayEncoding": [],
    "stringArrayIndexShift": True,
    "stringArrayRotate": True,
    "stringArrayShuffle": True,
    "stringArrayWrappersCount": 1,
    "stringArrayWrappersChainedCalls": True,
    "stringArrayWrappersParametersMaxCount": 2,
    "stringArrayWrappersType": "variable",
    "stringArrayThreshold": 0.75,
    "unicodeEscapeSequence": False
}

About

Tool for obfuscating, compressing Javascript, and collecting static files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published