https://github.com/stephanerob/savvyflags-js
JS client for savvyflags
https://github.com/stephanerob/savvyflags-js
Last synced: about 4 hours ago
JSON representation
JS client for savvyflags
- Host: GitHub
- URL: https://github.com/stephanerob/savvyflags-js
- Owner: StephaneRob
- License: mit
- Created: 2025-08-21T17:52:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-22T06:37:55.000Z (10 months ago)
- Last Synced: 2025-10-30T23:21:31.937Z (8 months ago)
- Language: TypeScript
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SavvyFlags JS client
Client Javascript for savvyflags
## Usage
```js
import { SavvyFlagsClient } from 'savvyflags-js'
const sdkConnectionUrl = 'http://mysavvyflags.com/api/features/sdk_dUJWMldTTEc5e'
const client = new SavvyFlagsClient({
url: sdkConnectionUrl,
context: { email: 'john@doe.com' },
mode: 'plain',
})
await client.init()
const navColor = client.getFlag('nav:color', 'blue')
```