-
Install
Terminalnpm install shoal-js@1Terminalpnpm add shoal-js@1Terminalyarn add shoal-js@1Terminalbun add shoal-js@1 -
Create a client
shoal.jsconst Shoal = require("shoal-js"); module.exports = new Shoal(process.env.SHOAL_KEY, { refresh: 60 }); -
Check a toggle
JavaScriptconst client = require("./shoal"); const on = await client.enabled("new-checkout", { id: req.user.id });
You’re reading the docs for an older version. v1.xGo to the latest docs →
Getting started
Quickstart
Install shoal-js and evaluate a toggle.