# express-able

> Able A/B testing middleware for express

Latest version **0.4.4** (published 2015-08-24) · MPL 2.0 license · 0 weekly downloads

## Install

```sh
npm install express-able
pnpm add express-able
yarn add express-able
bun add express-able
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.4 |
| Published | 2015-08-24 |
| First published | 2015-03-11 |
| Weekly downloads | 0 |
| License | MPL 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Danny Coates |
| Maintainers | dannycoates |

## Links

- npm: https://www.npmjs.com/package/express-able
- Repository: https://github.com/dannycoates/express-able
- Homepage: https://github.com/dannycoates/express-able#readme
- Issues: https://github.com/dannycoates/express-able/issues
- npm.io page: https://npm.io/package/express-able

## Dependencies (2)

- [able](https://npm.io/package/able.md) 0.4.3
- [parseurl](https://npm.io/package/parseurl.md) 1.3.0

## Recent versions

- 0.4.4 (latest) — 2015-08-24
- 0.4.3 — 2015-07-12
- 0.4.2 — 2015-04-28
- 0.4.1 — 2015-04-27
- 0.4.0 — 2015-04-27
- 0.3.0 — 2015-04-15
- 0.2.0 — 2015-03-11
- 0.1.1 — 2015-03-11
- 0.1.0 — 2015-03-11

## README

express-able
============

[Able](https://www.npmjs.com/package/able) A/B testing middleware for [express](http://expressjs.com)

# Example

```js

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`.

---
_Source: https://npm.io/package/express-able · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
