@ms-cloudpack/feature-flags
v0.1.1
Published
Feature flags
Downloads
152
Keywords
Readme
@ms-cloudpack/feature-flags
This package is responsible for;
- Downloading and storing feature flags in a local cache folder at the repository level.
- Providing an interface for applications to check the status of a feature.
Usage
import { getFeatureFlags } from '@ms-cloudpack/feature-flags';
const featureFlags = getFeatureFlags({ repositoryName: 'my-repository-name', applicationName: 'my-app-name' });
if (featureFlags['my-feature-flag']) {
// do something new
} else {
// keep doing the old thing
}