tggl-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Tggl Logo

Tggl Typescript SDK

The Typescript SDK can be used both on the client and server to evaluate flags and report usage to the Tggl API or a proxy.

🔗 Website📚 Documentation📦 NPM🎥 Videos

GitHub Workflow Status (with event) Coveralls branch npm

Usage

Install the dependency:

npm i tggl-client

Start evaluating flags:

import { TgglClient } from 'tggl-client'

const flags = await client.evalContext({
  userId: 'foo',
  email: 'foo@gmail.com',
  country: 'FR',
  // ...
})

if (flags.get('my-feature', true)) {
  // ...
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.132latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.132
2.0.03
1.17.2652
1.17.10
1.17.00
1.16.01
1.15.62,869
1.15.552
1.15.41
1.15.3644
1.15.20
1.15.10
1.15.00
1.14.02
1.13.2221
1.13.17
1.13.020
1.12.01
1.11.038
1.10.01
1.9.20
1.9.10
1.9.00
1.8.00
1.7.10
1.7.01
1.6.10
1.6.00
1.5.00
1.3.00
1.2.00
1.1.20
1.1.10
1.1.00
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i tggl-client

Weekly Downloads

4,545

Version

2.0.1

License

ISC

Unpacked Size

72.7 kB

Total Files

20

Last publish

Collaborators

  • nick-keller