A simple library for using proctor in JavaScript.
npm install proctorjsA simple library for using Proctor results in JavaScript.
This library can be used both in the browser or on a NodeJS server like express or restify.
NodeJS
```
npm install proctorjs --save
Bower
``
bower install proctorjs --save
NodeJS
``
var Proctor = require('proctorjs').Proctor;
Browser
``
...
```
Proctor.init({'test1', 0});
Proctor.inGroup('test1', 0); // TRUE
Proctor.inGroup('test1', 1); // FALSE
Proctor.inGroup('test2', 1); // FALSE
Proctor.init(Object.
This method initializes the utility with the test groups from proctor.
Proctor.getGroups(): Object.
Returns the groups that the utility is currently configured with.
Proctor.inGroup(string, number): boolean
Return whether or not the current user falls into the desired test group.
Proctor.getGroupValue(string): number
Gets the value for the desired test group.
If the the test group does not exist, then -1 is returned.