testable-middleware

0.4.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i testable-middleware

Weekly Downloads

0

Version

0.4.0

License

MIT

Last publish

Collaborators

  • joeytrapp