@openfeature/flagd-core
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

flagd-core

flagd-core contain the core logic of flagd in-process evaluation provider. This package is intended to be used by concrete implementations of flagd in-process providers.

Usage

flagd-core wraps a simple flagd feature flag storage and flag evaluation logic.

To use this implementation, instantiate a FlagdCore and provide valid flagd flag configurations.

const core = new FlagdCore();
core.setConfigurations(FLAG_CONFIGURATION_STRING);

Once initialization is complete, use matching flag resolving call.

const resolution = core.resolveBooleanEvaluation('myBoolFlag', false, {});

/@openfeature/flagd-core/

    Package Sidebar

    Install

    npm i @openfeature/flagd-core

    Weekly Downloads

    2,902

    Version

    0.2.5

    License

    none

    Unpacked Size

    103 kB

    Total Files

    19

    Last publish

    Collaborators

    • beeme1mr
    • toddbaert