Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dataunlocker

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dataunlocker

DataUnlocker's command line interface utilities

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
0
Weekly downloads
 
Created
Source

DataUnlocker's CLI

🛡️ DataUnlocker's command line interface utilities.

Requirements

Requires NodeJS v16+ to be installed, which comes with npx CLI runner.

Usage

Patch a core JavaScript file of your web application

DataUnlocker Defender tightly integrates with your web app's JavaScript code, specifically, your build artifacts or JavaScript libraries that your web app relies on.

Locate such a file (file.js) and patch it using the following command, ideally in your deployment pipeline.

npx -y dataunlocker patch file.js

This command requires you to input your unique DataUnlocker domain ID, either by env var DATAUNLOCKER_ID:

export DATAUNLOCKER_ID=000000000000000000000000

or via the --id flag:

npx -y dataunlocker patch file.js --id 000000000000000000000000

As a result, file.js will be replaced with its obfuscated version with DataUnlocker Defender baked in. A backup of the original file.js will be placed next to it, named file.js.0000000.backup by default.

  • You can skip creating a backup file with --no-backup option.
  • You can set a name for a backup file with --backup filename.js option.
  • You can specify which endpoint to use for the patched code with --endpoint example.com/abcdef option (specify the endpoint URI without the protocol).

Keywords

FAQs

Package last updated on 03 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc