🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@hackler/js-client-sdk

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hackler/js-client-sdk

JavaScript Client(Web Browser) SDK

3.3.2
Source
npm
Version published
Weekly downloads
29
163.64%
Maintainers
1
Weekly downloads
 
Created
Source

Hackle JavaScript Client(Web Browser) SDK

Install

npm install @hackler/js-client-sdk --save

Usage

Install & Decide the variation

const Hackle = require("@hackler/hackle-sdk");

const hackleClient = Hackle.createInstance("YOUR_SDK_KEY");

hackleClient.onReady(() => {
    const variation = hackleClient.variation(AB_TEST_KEY);
   
    if (variation === "A") {
      // AS-IS Code
    } else if (variation === "B") {
      // TO-BE Code
    }
})

Records the event

hackleClient.onReady(() => {
  hackleClient.track(EVENT_KEY);
});

Keywords

hackle

FAQs

Package last updated on 25 Mar 2022

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