iff
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Disclaimer: This project is in a design phase, and is not usable right now.

iff: Feature Flags for User Interfaces

Feature flags are an incredible tool for buulding and shipping software. iff provides a javascript client for using feature flags in User Interfaces, agnostic of the backing service.

Read this explainer for more details on its implementation design.

Install

npm install iff

Usage

import iff from 'iff';

const value = iff('flag-name', defaultValue);

Setup

  • [TODO: How to integrate with a service for use in a browser]
  • [TODO: How to integrate with a service for use in a server]

Tools

  • iff scan: Scan a codebase and output an array of all used flags. Used to make sure only used flags in an application are fetched from a service
  • iff outdated: Scan a codebase, and output which flags are at 100%/full rollout in a service. Used to cleanup old flags and unused code branches from a codebase.

Thanks

Thanks to Jon Brennecke for giving us the package name iff.

Readme

Keywords

none

Package Sidebar

Install

npm i iff

Weekly Downloads

1

Version

1.0.4

License

Apache-2.0

Unpacked Size

3.95 kB

Total Files

7

Last publish

Collaborators

  • threepointone
  • cangarugula