@attraqt/ab-test
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @attraqt/ab-test

    Weekly Downloads

    754

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.53 kB

    Total Files

    9

    Last publish

    Collaborators

    • attraqt-admin