@octopusdeploy/openfeature
v3.0.2
Published
The Octopus Deploy Feature Toggles OpenFeature Provider
Readme
Octopus Deploy OpenFeature Provider for TypeScript/JavaScript (web clients)
The OctopusDeploy TypeScript/JavaScript OpenFeature provider for web clients, to be used with the OpenFeature web SDK.
About Octopus Deploy
Octopus Deploy is a sophisticated, best-of-breed continuous delivery (CD) platform for modern software teams. Octopus offers powerful release orchestration, deployment automation, and runbook automation, while handling the scale, complexity and governance expectations of even the largest organizations with the most complex deployment challenges.
Getting Started
Installation
npm i @octopusdeploy/openfeatureUsage
const provider = new OctopusFeatureProvider({ clientIdentifier: "YourClientIdentifier" });
await OpenFeature.setContext({ userid: "[email protected]" });
await OpenFeature.setProviderAndWait(provider);
const client = OpenFeature.getClient();
if (client.getBooleanValue("to-the-moon-feature", false, {})) {
console.log('🚀🚀🚀');
}