Skip to content

DanielsLuz/toggle-it

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toggle It

This is a wrapper around the toggle-it-core.

The main purpose of this wrapper is to integrate an API request responsible to fetch the data relative to the feature flags with the core, which checks if a feature is "on" or "off", basically.

For now, the requirements are:

  1. the fetch function should be a thenable (i.e. has a then method). Most Promise based request libraries should be just fine.

Instalation

yarn add toggle-it

Usage

Simple example usages can be found at the tests file.

TODO

  1. (DONE) Make it possible to the user to customize how the JSON can be accessed on the response object.
  2. (DONE) Support parametrized custom functions with more complex use cases for the flags.
  3. Support non-thenables.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published