1.0.3 • Published 2 years ago

underflag-dynamodb v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

DynamoDB Provider

This is a DynamoDB provider for underflag (feature flag/feature toggle)

Install

Using npm:

npm install underflag-dynamodb

Using yarn:

yarn add underflag-dynamodb

How to use

Import the underflag and prepare to load data provider

import { Underflag } from "underflag";
import { DynamodbDataProvider } from "underflag-dynamodb";
const client = { region: "us-east-1" };
const dataProvider = new DynamodbDataProvider({ client });
const underflag = new Underflag({ dataProvider });
if (await underflag.isOn("feature")) {
    // ...
}

Attention: Do not forget of create the features table in AWS DynamoDB with the key and value columns.

Know more on underflag npm page

License

MIT