1.1.0 • Published 12 months ago

@octopusdeploy/openfeature v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

openfeature-ts-web

Build test and release

The OctopusDeploy Javascript OpenFeature Web Provider

Usage

const provider = new OctopusFeatureProvider({ clientIdentifier: "YourClientIdentifier" });

await OpenFeature.setProviderAndWait(provider);

await OpenFeature.setContext({ userid: "bob@octopus.com" });

const client = OpenFeature.getClient();
    
if (client.getBooleanValue("to-the-moon-feature", false, {})) {
    console.log('🚀🚀🚀');
}