0.0.6 • Published 3 years ago

scrutinize-client v0.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

scrutinize-client

This is the javascript client for the scrutinize experimentation platform.

Installation

To install the client, use npm:

npm i scrutinize-client

Usage

Once installed, you can publish metrics and conduct experiments using the client API.

Publishing Metrics

import ScrutinizeClient from 'scrutinize';

const scrutinize = ScrutinizeClient('https://scrutinize-location');
await scrutinize.observe(
    'wilma_rudolph',
    'purchased_coffee',
    True,
)

Running an experiment

import ScrutinizeClient from 'scrutinize';
import canUserHaveFreeCoffee from 'my_helper_lib';

const scrutinize = ScrutinizeClient('https://scrutinize-location');
const [isExperiment, gaveFreeCoffee] = await scrutinize.call(
    'eng.give_user_free_coffee',
    'wilma_rudolph',
    False,
    lambda: canUserHaveFreeCoffee('wilma_rudolph'),
)
0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago