
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@hackler/javascript-sdk
Advanced tools
npm install @hackler/javascript-sdk --save
yarn add @hackler/javascript-sdk
const http = require("http");
const Hackle = require("@hackler/javascript-sdk");
const hackleClient = Hackle.createInstance("YOUR_SDK_KEY");
http.createServer((req, res) => {
const user = {
id: USER_ID
}
const variation = hackleClient.variation(AB_TEST_KEY, user);
if (variation === "A") {
// AS-IS Code
} else if (variation === "B") {
// TO-BE Code
}
res.end(`Hello ${variation}!`)
}).listen(8080)
hackleClient.track(EVENT_KEY, user);
or
const event = {
key: EVENT_KEY,
value: 5000,
properties: {
app_version: "1.0.0",
first_paying: false,
item_count: 5
}
}
hackleClient.track(event, user);
FAQs
JavaScript SDK For Hackle
The npm package @hackler/javascript-sdk receives a total of 1,455 weekly downloads. As such, @hackler/javascript-sdk popularity was classified as popular.
We found that @hackler/javascript-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.