Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@flags-sdk/bucket

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flags-sdk/bucket

Bucket.co provider for the Flags SDK

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
4
Created
Source

Flags SDK - Bucket Provider

The Bucket provider for the Flags SDK contains support for Bucket's feature flags.

Setup

The Bucket provider is available in the @flags-sdk/bucket module. You can install it with

pnpm i @flags-sdk/bucket

Provider Instance

You can import the default adapter instance bucketAdapter from @flags-sdk/bucket:

import { bucketAdapter } from '@flags-sdk/bucket';

Example

import { flag } from 'flags/next';
import { bucketAdapter } from '@flags-sdk/bucket';

export const huddleFlag = flag<boolean>({
  key: 'huddle',
  adapter: bucketAdapter.featureIsEnabled(),
});

Documentation

Please check out the Bucket provider documentation for more information.

Keywords

flags-sdk

FAQs

Package last updated on 19 May 2025

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