@attraqt/ab-test

## Installation and Usage

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@attraqt/ab-test
1.5.110 months ago2 years agoMinified + gzip package size for @attraqt/ab-test in KB

Readme

@attraqt/ab-test

Installation and Usage

npm install --save @attraqt/ab-test

import {drawAbTestVariationForUser} from @attraqt/ab-test

drawAbTestVariationForUser("31d814b3-ee4a-401e-80dc-77efbfa431fa", {
  id: "homepage-ab-test",
  variations: [{
    id: "a",
    weight: 50
  }, {
    id: "b",
    weight: 50
  }]
});

Methods

| Method | Argument(s) | Result | Description | | ----------------- | ---------------------------------------------------------------------------------------------------------------- | ------------------- | ----------------------------------------------------- | | drawAbTestVariationForUser | options: AbTest | string | Draws a variation for the given user id |