Socket
Socket
Sign inDemoInstall

safe-obfs

Package Overview
Dependencies
111
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    safe-obfs

Safe obfuscation tool


Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 29 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc