@octopusdeploy/openfeature
v2.1.0
Published
The Octopus Deploy Feature Toggles OpenFeature Provider
Downloads
37,021
Readme
openfeature-ts-web
The OctopusDeploy Javascript OpenFeature Web Provider
Usage
const provider = new OctopusFeatureProvider({ clientIdentifier: "YourClientIdentifier" });
await OpenFeature.setProviderAndWait(provider);
await OpenFeature.setContext({ userid: "[email protected]" });
const client = OpenFeature.getClient();
if (client.getBooleanValue("to-the-moon-feature", false, {})) {
console.log('🚀🚀🚀');
}