Skip to content

DarklaunchMe/DarklaunchJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Darklaunch-js

Darklaunch bindings for JavaScript. NOTE: THIS IS A WORK IN PROGRESS AND DOESN'T ACTUALLY FUNCTION AT THE MOMENT.

Installation

Through npm:

npm install darklaunch-js --save

Through yarn:

yarn add darklaunch-js

Usage

import Darklaunch from 'darklaunch-js'


...
Darklaunch.bind(uniqueID) # Optional: You may bind the darklaunch storage to uniquely identify a user.

...

if (Darklaunch.flag('DEV-123') {
  #Darklaunch Enabled
} else {
  #Darklaunch Disabled
}

Darklaunch.flag will automatically determine a users eligibility for a darklaunch given the response from you Darklaunch Dashboard.

Development

Soon to come.

Contribution

Do it. Open Source is awesome.

Liscense

MIT

About

JavaScript Bindings for Darklaunch

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors