0.4.0 • Published 11 years ago

testable-middleware v0.4.0

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

testable-middleware

Connect or Express middleware to easily attach testable to a route.

Usage

var express = require('express'),
    testable = require('testable-middleware'),
    app = express(),
    config = {
        route: '/test.html',
        // any other configurations to pass on to testable;
    };

testable.attach(app, config);

// other routes

app.listen(8000);

The attach() method adds the testable vendor directory as a static file directory and adds the testableMiddleware handler for the supplied route (defaults to '/test.html'). The configuration object is passed along to testable. See testable docs for more information about options to pass to testable.

0.4.0

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago