index.js
function initFeatureFlags(enabled) {
  return function features(req, res, next) {
    if (req.get('x-env') !== 'production') return next();
    if (enabled && enabled !== req.cookies.features) res.cookie('features', enabled);
    next();
  };
}
function initFeatureFlags(enabled) {
  return function features(req, res, next) {
    if (req.get('x-env') !== 'production') return next();
    if (enabled && enabled !== req.cookies.features) res.cookie('features', enabled);
    next();
  };
}
function initFeatureFlags ( enabled ) { return function features ( req , res , next ) { if ( req . get ( 'x-env' ) !== 'production' ) return next ( ) ; if ( enabled && enabled !== req . cookies . features ) res . cookie ( 'features' , enabled ) ; next ( ) ; } ; }
Initialize the feature flags middleware
Initialize the feature flags middleware