obf-for-node
v1.0.0
Published
Professional Node.js Obfuscator
Maintainers
Readme
obf-for-node
Advanced JavaScript Obfuscator for Node.js applications.
Installation
npm install -g obf-for-nodeCLI Usage
obf-for-node -f <input> -o <output> [options]| Option | Description |
|--------|-------------|
| -f, --file | Input file path (Required) |
| -o, --output | Output file path (Required) |
| --antidebug | Inject anti-debugging loops |
| --antitamper | Inject function integrity checks |
| --compact | Minify output |
| --str-array | Enable String Array encryption |
| --control-flow | Enable Control Flow Flattening |
Example
obf-for-node -f server.js -o server.obf.js --antidebug --control-flowAPI Usage
import { obfuscate } from 'obf-for-node';
const code = 'const x = 1;';
const result = obfuscate(code, {
compact: true,
antiDebug: true
});