0.4.3 • Published 8 months ago

@groundcontrolsh/groundcontrol v0.4.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

GroundControl

GroundControl

TypeScript SDK for GroundControl.

Installing

With NPM

npm i @groundcontrolsh/groundcontrol

With yarn

yarn add @groundcontrolsh/groundcontrol

Usage

import { GroundControlClient } from "@groundcontrolsh/groundcontrol";

const client = new GroundControlClient({
  projectId: "YOUR_PROJECT_ID",
  apiKey: "YOUR_API_KEY",
  cache: 60, // Optional. For how long results are cached in seconds. Defaults to not caching.
  // fetch: ... Pass a fetch implementation if there's not a global one defined.
});

const isEnabled = await client.isFeatureFlagEnabled("flag-name");
const isEnabledForActor = await client.isFeatureFlagEnabled("flag-name", {
  actors: ["actor1234"],
});
0.4.1

8 months ago

0.4.0

8 months ago

0.4.3

8 months ago

0.4.2

8 months ago

0.3.0

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago