@deliveroo/determinator

0.2.0 • Public • Published

Determinator

This is a JavaScript port of the Ruby determinator library.

⚠️ This version is in an extremely early stage (I'm learning how to write NPM modules) and though it makes use of determiantor's standard tests to ensure it functions correctly, the API is likely to change a lot as this gets worked on.

Usage

const d = require('determinator');
const retrieval = new d.FileRetrieval('path/to/features/');
const determinator = new d.Determinator(retrieval);

const outcome = determinator.Determinate(
  'my_experiment_name',
  'user id',
  'anonymous user id',
  {
    employee: true
  }
)

/@deliveroo/determinator/

    Package Sidebar

    Install

    npm i @deliveroo/determinator

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    32.2 kB

    Total Files

    37

    Last publish

    Collaborators

    • deliveroo-design-tokens
    • deliveroo-re-event
    • deliveroo-design-system
    • jphastings
    • deliveroo-create-deliveroo-tool
    • deliveroo-js-common
    • vernak2539
    • deliveroo-eng
    • tech-vendors
    • andybriggs