An OpenFeature provider for CloudBees Feature Management
npm install cloudbees-openfeature-provider-node






This is the CloudBees provider implementation for OpenFeature for the Javascript SDK.
OpenFeature provides a vendor-agnostic abstraction layer on Feature Flag management.
This provider allows the use of CloudBees Feature Management as a backend for Feature Flag configurations.
``bash`
npm install cloudbees-openfeature-provider-node`
orbash`
yarn add cloudbees-openfeature-provider-node
bash
npm install @openfeature/js-sdk
`
or
`bash
yarn add @openfeature/js-sdk
`
$3
Follow the instructions on the Javascript SDK project for how to use the Javascript SDK.
You can configure the CloudBees provider by doing the following:
`typescript
import {OpenFeature} from '@openfeature/js-sdk';
import {CloudbeesProvider} from 'cloudbees-openfeature-provider-node'const appKey = 'INSERT_APP_KEY_HERE'
OpenFeature.setProvider(await CloudbeesProvider.build(appKey));
const client = OpenFeature.getClient();
const value = await client.getBooleanValue('enabled-new-feature', false);
``