## Installation and Usage
``bash`
npm install --save @attraqt/ab-test
`js
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
}]
});
`
| Method | Argument(s) | Result | Description |
| ----------------- | ---------------------------------------------------------------------------------------------------------------- | ------------------- | ----------------------------------------------------- |
| drawAbTestVariationForUser | options: AbTest | string` | Draws a variation for the given user id |