variate
Client-side multivariate testing.
Last updated 4 years ago by winton .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install variate 
SYNC missed versions from official npm registry.

Variate Build Status

Client-side multivariate testing.

Install

npm install variate

Usage

Variate uses the industry factory pattern:

import variate from "variate"

variate({
  cookie: {
    expires: 10 * 365,
    path:    "/",
    domain:  "site.com",
    secure:  true
  },
  tests: {
    banner: [ "short", "tall" ]
  },
  callback: ({ name, test, variant, converted }) => {
    // name - "banner"
    // test - [ "short", "tall" ]
    // variant - "short" or "tall"
    // converted - true or false
  }
})

// returns "short" or "tall"
//
variate().test({ name: "banner" })

// record conversion
//
variate().convert({ name: "banner" })

Current Tags

  • 2.4.0                                ...           latest (4 years ago)

30 Versions

  • 2.4.0                                ...           4 years ago
  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.5                                ...           4 years ago
  • 2.1.3                                ...           4 years ago
  • 2.1.2                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.2.11                                ...           5 years ago
  • 0.2.10                                ...           5 years ago
  • 0.2.9                                ...           5 years ago
  • 0.2.8                                ...           5 years ago
  • 0.2.7                                ...           5 years ago
  • 0.2.6                                ...           5 years ago
  • 0.2.5                                ...           5 years ago
  • 0.2.4                                ...           5 years ago
  • 0.2.3                                ...           5 years ago
  • 0.2.2                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |