@atono-io/web-sdk
v0.6.6
Published
## Quick start
Downloads
117
Keywords
Readme
Atono Web SDK
Quick start
Requirements
- ES2022-compatible web browser (Chrome, Edge, Firefox, etc)
Install
npm install --save @atono-io/web-sdk
Usage
import { Atono } from '@atono-io/web-sdk';
const atono = Atono.fromEnvironmentKey('<your-environment-key>');
async function main() {
const featureFlags = await atono.getFeatureFlags();
const amazingFeatureEnabled = featureFlags.getBooleanValue('amazing_feature_enabled', false);
if (amazingFeatureEnabled) {
console.log('Amazing feature is enabled 😎');
}
}
main();