Skip to main content
Version: Config V2

ConfigCat SDK for Deno

caution

As this is a community maintained package, ConfigCat can't guarantee it's stability, safety and can't provide official customer support.

info

We are currently working on an official SDK for Deno, and a prerelease version of this new SDK is already available. Although it is still a work in progress, you may get better results with it.

ConfigCat SDK for Deno on GitHub

Usage

Import package

import * as configcat from 'https://raw.githubusercontent.com/sigewuzhere/configcat-deno/master/client.ts';

Create ConfigCat client and access feature flags

const configCatClient = configcat.createClientWithAutoPoll(
'PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ',
);

const isAwesomeFeatureEnabled = await configCatClient.getValueAsync(
'isAwesomeFeatureEnabled',
false,
);
console.warn('isAwesomeFeatureEnabled: ' + isAwesomeFeatureEnabled);

Contributions

Contributions are welcome

License

MIT