abby-client
[![Coverage Status](https://coveralls.io/repos/github/GreetzNL/abby-client/badge.svg)](https://coveralls.io/github/GreetzNL/abby-client) [![Build Status](https://travis-ci.com/GreetzNL/abby-client.svg?token=n8i4tz6gpgW4zgU5pvDP&branch=master)](https://tra
Last updated 4 months ago by tovmassian .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install abby-client 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.0                                ...           latest (4 months ago)

44 Versions

  • 2.0.0                                ...           4 months ago
  • 2.0.0-beta.0                                ...           4 months ago
  • 1.5.17                                ...           5 months ago
  • 1.5.16                                ...           8 months ago
  • 1.5.15                                ...           a year ago
  • 1.5.14                                ...           a year ago
  • 1.5.13                                ...           a year ago
  • 1.5.12                                ...           a year ago
  • 1.5.11                                ...           a year ago
  • 1.4.11                                ...           a year ago
  • 1.4.10                                ...           2 years ago
  • 1.4.9                                ...           2 years ago
  • 1.4.8                                ...           2 years ago
  • 1.4.7                                ...           2 years ago
  • 1.4.5                                ...           2 years ago
  • 1.4.4                                ...           2 years ago
  • 1.4.3                                ...           2 years ago
  • 1.4.2                                ...           2 years ago
  • 1.4.1                                ...           2 years ago
  • 1.4.0                                ...           2 years ago
  • 1.3.1                                ...           2 years ago
  • 1.3.0                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.17                                ...           2 years ago
  • 1.1.16                                ...           2 years ago
  • 1.1.15                                ...           2 years ago
  • 1.1.14                                ...           2 years ago
  • 1.1.13                                ...           2 years ago
  • 1.1.12                                ...           2 years ago
  • 1.1.11                                ...           2 years ago
  • 1.1.9                                ...           2 years ago
  • 1.1.8                                ...           2 years ago
  • 1.1.7                                ...           2 years ago
  • 1.1.6                                ...           2 years ago
  • 1.1.5                                ...           2 years ago
  • 1.1.4                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |