Freeze is a pretty simple, yet powerful feature flipper, powered by Redis.
var Freeze = require'freeze-flip';var freeze = host: '127.0.0.1' port: 6379 ;freezeenable'feature_name'then;freezedisable'feature_name'then;featureisEnabled'feature_name'thenif enabled// Feature is enabled.else// Do something else.;
Because Redis is not persistent, and for this usecase, should not. We need a way to easily define these features and re-allocate them. This allows you to re-define the features whenever your application launches, or whenever you deploy. It only creates entries that do not currently exist. By default, newly defined features will be disabled.
This module comes with an express app to help you manage the features. It comes with the ability to list all the features, and their status (enabled, disabled), and allows you to flip it.
var Freeze = require'freeze-flip';// Create a new server;FreezecreateAppfreezeInstancelisten4000;
createApp method returns an express application.