Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudbees-openfeature-provider-node

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudbees-openfeature-provider-node

An OpenFeature provider for CloudBees Feature Management

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

cloudbees-openfeature-provider-node

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

Keywords

FAQs

Package last updated on 20 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc