scrutinize-client
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.6 • Public • Published

    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'),
    )

    Install

    npm i scrutinize-client

    DownloadsWeekly Downloads

    0

    Version

    0.0.6

    License

    MIT

    Unpacked Size

    43.4 kB

    Total Files

    13

    Last publish

    Collaborators

    • briandillmann