0.4.4 • Published 9 years ago

express-able v0.4.4

Weekly downloads
1
License
MPL 2.0
Repository
github
Last release
9 years ago

express-able

Able A/B testing middleware for express

Example

var app = express()

app.use(
  require('express-able')({
    dir: './experiments',
    git: 'git://github.com/dannycoates/able-demo.git#master',
    addRoutes: true,
    watch: true
  })
)

app.get('/foo', function (req, res) {
  res.send(200, req.able.choose('bar'))
})

Options

  • dir : optional directory where experiments are stored. Defaults to ./experiments in the current working directory.
  • git : optional a github url to watch for experiment changes.
  • addRoutes : optional adds routes for using Able from a client browser. Defaults to false.
  • watch : optional poll git for changes to experiments. Defaults to false.
0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago