1.0.0 • Published 1 year ago
query-flags v1.0.0
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.
}