1.0.6 • Published 4 months ago

pandaflag-node v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Pandaflag Node JS SDK

Node JS SDK to easily evaluate Flags in your Node project

Installation

npm install pandaflag-node

Initialise 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 client

Evaluate 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
// }
1.0.6

4 months ago

1.0.5

1 year ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago