tggl-client
v2.0.1
Published
Tggl Typescript SDK for client and server
Downloads
18,105
Maintainers
Readme
Usage
Install the dependency:
npm i tggl-client
Start evaluating flags:
import { TgglClient } from 'tggl-client'
const flags = await client.evalContext({
userId: 'foo',
email: '[email protected]',
country: 'FR',
// ...
})
if (flags.get('my-feature', true)) {
// ...
}