Skip to content

Commit d938b74

Browse files
committed
added readme
1 parent ecc6bf6 commit d938b74

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# JavaScript minifier & obfuscator
2+
3+
Javascript minifier and obfuscator written in TypeScript.
4+
5+
Contains the following transformations:
6+
7+
- Comments and whitespace characters deletion
8+
- Redundant code deletion (unnecessary parentheses, ..)
9+
- Code optimization (dead code elimination, expression simplification, ..)
10+
- Identifiers renaming
11+
- Stopping debugger in a loop
12+
- Split of variable declarations and their location randomization
13+
- Numbers obfuscation
14+
- Expressions obfuscation
15+
- Randomizing the order of function parameters
16+
- Operators outlining (unary, binary, assignment)
17+
- Console redefinition
18+
- Strings obfuscation
19+
- Randomizing the order of function definitions
20+
- Function merging
21+
- Code outlining into eval
22+
- Code encryption and integrity protection
23+
24+
Each transformation can be configured in `config.yaml` file.
25+
26+
## Installation
27+
28+
```
29+
npm install
30+
```
31+
32+
## Usage
33+
34+
```
35+
npm start <inputFile> [<outputFile>]
36+
```

0 commit comments

Comments
 (0)