0.0.1 • Published 10 years ago
flaggr v0.0.1
Flaggr - Not ready for production yet....

Methods
Boolean
flaggr.enable(feature, next)flaggr.disable(feature, next)flaggr.isEnabled(feature, next)Groups
// Values will be called on members using https://lodash.com/docs#get.
// If key is a function when called checking for enabled or not it will be called with no arguments
flaggr.registerGroup (feature, groupName, key, value, next)flaggr.enableGroup(feature, groupName, next)flaggr.disableGroup(feature, groupName, next)flaggr.isEnabled(feature, opts, next) // option should be { group: groupName, groupMember }flaggr.isEnabledForUser(feature, groupName, groupMember, next)Actor. Must respond to id
flaggr.enableUser(feature, user, next)flaggr.disableUser(feature, user, next)flaggr.isEnabled(feature, opts, next) // option should be { user: user }flaggr.isEnabledForUser(feature, user, next)Adapters
- Memory (testing moslty)
Coming Soon
Better documentation
- Flaggr-UI
Percentage User
flaggr.enablePercentageActors(feature, percentage, next)flaggr.disablePercentageActors(feature, next)flaggr.isEnabled(feature, opts, next) // option should be { percentageUser: user}Percentage Time
flaggr.enablePercentageTime(feature, percentage, next)flaggr.disablePercentageTime(feature, next)flaggr.isEnabled(feature, opts, next) //options should be { percentageTime: time}Adapters
- Redis