https://github.com/holubj/js-obfuscator
JavaScript minifier and obfuscator
https://github.com/holubj/js-obfuscator
javascript-minifier javascript-obfuscator obfuscator typescript
Last synced: 6 months ago
JSON representation
JavaScript minifier and obfuscator
- Host: GitHub
- URL: https://github.com/holubj/js-obfuscator
- Owner: holubj
- Created: 2019-03-02T03:09:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-01T10:45:19.000Z (about 4 years ago)
- Last Synced: 2025-03-03T09:42:06.059Z (10 months ago)
- Topics: javascript-minifier, javascript-obfuscator, obfuscator, typescript
- Language: TypeScript
- Size: 127 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 []
```