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.

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