underflag-dynamodb
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i underflag-dynamodb

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

9.48 kB

Total Files

12

Last publish

Collaborators

  • diego.souza