1.1.0 • Published 12 months ago
@octopusdeploy/openfeature v1.1.0
openfeature-ts-web
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('🚀🚀🚀');
}