query-flags
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i query-flags

Weekly Downloads

2

Version

1.0.0

License

none

Unpacked Size

20.7 kB

Total Files

19

Last publish

Collaborators

  • dtinth-bot