pandaflag-node
v1.0.6
Published
Node JS SDK to easily evaluate Flags in your Node project
Readme
Pandaflag Node JS SDK
Node JS SDK to easily evaluate Flags in your Node project
Installation
npm install pandaflag-nodeInitialise the client
import PandaflagClient from 'pandaflag-node'
PandaflagClient.init(PROJECT_API_KEY, ENVIRONMENT)
// PROJECT_API_KEY = Your projects api key found in Pandaflag app In Projects page
// ENVIRONMENT = The environment name for which you initialize the clientEvaluate flags
import PandaflagClient, { Flag } from 'pandaflag-node'
// Get all flags
const flags: Flag[] = PandaflagClient.getFlags()
// Get specific flag
const flag: Flag = PandaflagClient.getFlag('maps_v2')
// {
// name: 'maps_v2'
// description: 'Updated UI version of maps feature'
// enabled: true
// }