1.2.0 • Published 1 year ago

safe-obfs v1.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

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.

1.2.0

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago