ab-tester
v1.0.1
Published
create A/B Test instance without handle,you can get the key of A or B then process with the result simply
Downloads
4
Readme
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;