1.0.1 • Published 5 months ago

cloudbees-openfeature-provider-node v1.0.1

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

CloudBees Feature Management provider for OpenFeature

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. a OpenFeature Specification OpenFeature SDK npm version CloudBees Rox SDK Known Vulnerabilities

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.

Requirements

  • node 14 or greater

Installation

Add it to your build

npm install cloudbees-openfeature-provider-node

or

yarn add cloudbees-openfeature-provider-node

Confirm peer dependencies are installed

npm install @openfeature/js-sdk

or

yarn add @openfeature/js-sdk

Configuration

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:

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);
1.0.1

5 months ago

1.0.0

3 years ago

0.5.1

3 years ago

0.0.1-beta1

3 years ago

0.1.0

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago