safe-obfs
v1.2.0
Published
Safe obfuscation tool
Downloads
47
Readme
safe-obfs
Prerelease obfuscation tool, A prestaging step for Holepunch Platform
npm install safe-obfs
# obfuscate every js, cjs and mjs files recursively in the dir.
cd npm-project
safe-obfs
Configuration
By default, all the files in the project will be obfuscated. This configuration example shows how to include/exclude files based on their path:
{
"name": "safe-obfs-example",
"type": "module",
"version": "1.0.0",
"safe-obfs" : {
exclude: ["node_modules"]
include: ["node_modules/streamx"],
}
// ...
}
This configuration will not obfuscate files with path that includes node_modules
except for files with path that includes node_modules/streamx
. That means include
has preference over exclude
.
Single file obfuscation
safe-obfs /path/to/source /path/to/destination
If the destination is not specified, outputs the obfuscated code in console.