File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments