2.0.0 • Published 4 years ago

abby-client v2.0.0

Weekly downloads
53
License
ISC
Repository
github
Last release
4 years ago

Coverage Status Build Status

Abby client

This is the client library for Greetz's very own A/B testing platform.

Usage

First you need to init the module to be able to fetch all active experiment.

const abbyClient = require('abby-client')({ apiEndpoint, tags, logger }, synchroniser);

Config

apiEndpoint - String: absolute address of API endpoint

tags - String: meta info like name of current envouriment

logger - Class|Object: logger object which will replace default logger. Note that it should support log, debug, and error methods. By default it will use console.

interval - Number: amount of milliseconds before calling api for experiments. Default 1 minute (60000ms)

Synchroniser

TODO: synchroniser - Class|Object: synchroniser object.

to start fetching you need to run

abbyClient.ready()

and then you are ready to use it. Just pass your request and response objects and abby-client will set appropirate experiments to response object.

abbyClient(req, res)

Test

Run npm test to start tests. It will automatically generate coverage.

2.0.0

4 years ago

2.0.0-beta.0

4 years ago

1.5.17

4 years ago

1.5.16

5 years ago

1.5.15

5 years ago

1.5.14

5 years ago

1.5.13

5 years ago

1.5.12

5 years ago

1.5.11

5 years ago

1.4.11

5 years ago

1.4.10

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

6 years ago

1.1.13

6 years ago

1.1.12

6 years ago

1.1.11

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago