New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@belvo/belvo-configcat-client

Package Overview
Dependencies
Maintainers
0
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@belvo/belvo-configcat-client

## Install package ``` npm install @belvo/belvo-configcat-client ```

  • 0.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
386
decreased by-42.04%
Maintainers
0
Weekly downloads
 
Created
Source

configcat-client-wrapper

Install package

npm install @belvo/belvo-configcat-client

Import

import FeatureFlagClient from '@belvo/belvo-configcat-client'

How to use it

Auto Poll (120s)

FLAG_LIST = [{ name: 'flagKeyName', user: {}}]

const config = { featureFlags: FLAG_LIST, emittedEventName: 'onFeatureFlagValueChanged', configCatApiKey }
const featureFlag = FeatureFlagClient(config)
featureFlag.client.handler.on('onFeatureFlagValueChanged', onValueChanged)

Manual Poll

const config = {
  apiKey,
  mode: 'manual_poll'
}
const featureFlagClient = new FeatureFlagClient(config)
await featureFlagClient.client.forceRefreshAsync()
this.featureFlagClient = featureFlagClient

Then when you want to fetch the value:

const featureFlagValue = await this.featureFlagClient.client.getValueAsync(featureFlag, false, userProps)

## :busts_in_silhouette: Contributing


If you wish to submit a pull request, please be sure check the items on this list:
- [ ] Tests related to the changed code were executed
- [ ] The source code has been coded following the OWASP security best practices (https://owasp.org/www-pdf-archive/OWASP_SCP_Quick_Reference_Guide_v2.pdf).
- [ ] Commit message properly labeled
- [ ] There is a ticket associated to each PR. 

FAQs

Package last updated on 02 Jul 2024

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