1.0.0 • Published 1 year ago

query-flags v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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.
}

API reference

API reference