ab-tester

1.0.1 • Public • Published

ab-test

get A/B result quickly with node or browser

install

npm install ab-tester

start

import AB from 'ab-tester';
 
// create one group for A/B
AB.create('home',{
  'wide':0.3,
  'normal':0.7
});
 
// create anothor group for A/B
AB.create('video',{
  'wide':0.1,
  'normal':0.9
});
 
// get current key of hit within group by name
console.log(AB.run('home'));//normal

notice

sum of all items can be any number not must equal 1; the reuslt appear by rate of every item;

Readme

Keywords

Package Sidebar

Install

npm i ab-tester

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cucygh