query-flags
v1.0.0
Published
The `query-flags` package provides a simple way to enable/disable features based on a query string parameter `flags`. This is useful for testing features in production.
Downloads
10
Readme
query-flags
The query-flags
package provides a simple way to enable/disable features based on a query string parameter flags
. This is useful for testing features in production.
Usage
import { isQueryFlagEnabled } from 'query-flags'
// Enable the feature by adding `?flags=my-feature` to the URL.
if (isQueryFlagEnabled('my-feature')) {
// Do something.
}