FunWithFlags

FunWithFlags, the Elixir feature flag library.

Usage

Still a work in progress, expect breaking changes.

FunWithFlags.enabled?(:cool_new_feature)
false
{:ok, true} = FunWithFlags.enable(:cool_new_feature)
FunWithFlags.enabled?(:cool_new_feature)
true
{:ok, false} = FunWithFlags.disable(:cool_new_feature)
FunWithFlags.enabled?(:cool_new_feature)
false

Installation

The package can be installed by adding fun_with_flags to your list of dependencies in mix.exs:

def deps do
[{:fun_with_flags, "~> 0.0.1"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/fun_with_flags.