Skip to content

holubj/js-obfuscator

Repository files navigation

JavaScript minifier & obfuscator

Javascript minifier and obfuscator written in TypeScript.

Contains the following transformations:

  • Comments and whitespace characters deletion
  • Redundant code deletion (unnecessary parentheses, ..)
  • Code optimization (dead code elimination, expression simplification, ..)
  • Identifiers renaming
  • Stopping debugger in a loop
  • Split of variable declarations and their location randomization
  • Numbers obfuscation
  • Expressions obfuscation
  • Randomizing the order of function parameters
  • Operators outlining (unary, binary, assignment)
  • Console redefinition
  • Strings obfuscation
  • Randomizing the order of function definitions
  • Function merging
  • Code outlining into eval
  • Code encryption and integrity protection

Each transformation can be configured in config.yaml file.

Installation

npm install

Usage

npm start <inputFile> [<outputFile>]

About

JavaScript minifier and obfuscator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy