Overriding values for you to test features

You may want to override values in the feature flag. This is useful when you need to test a feature by enabling it just for yourself and not all of your users.

The constructor takes an optional 2nd parameter, this is an object literal of override values. Here's an example that allows you to override a feature flag value using a parameter passed to an ExpressJS app:


  const f2t = 
    new FeatureFlagTechClient(
      {
        apiKey: "__YOUR_ENVIRONMENT_API_KEY__"
      },
      {
        "falseBoolean": req.param( "falseBooleanOverride" ) || null
      }
    );