safe-obfs

1.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i safe-obfs

Weekly Downloads

6

Version

1.1.0

License

Apache-2.0

Unpacked Size

18.2 kB

Total Files

6

Last publish

Collaborators

  • mafintosh
  • rafapaezbas