Skip to main content

Node.js

Install

npm install @flipfeatureflag/node

Usage

import { createClient } from "@flipfeatureflag/node";

const client = createClient({
url: "https://api.example.com",
sdkKey: "YOUR_SDK_KEY",
env: "prod",
context: { userId: "user-123" },
});

await client.start();

const enabled = client.isEnabled("new_checkout");