JSPM

  • Created
  • Published
  • Downloads 9878810
  • Score
    100M100P100Q233133F
  • License MIT

Simple middleware-style router

Package Exports

  • router
  • router/lib/layer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

router

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

Simple middleware-style router

Installation

$ npm install router

API

var Router = require('router')

This module is currently an extracted version from the Express 4.x project, but with the main change being it can be used with a plain http.createServer object or something like connect by removing Express-specific API calls.

Documentation is forthcoming, but the Express 4.x documentation can be found at http://expressjs.com/4x/api.html#router

Testing

$ npm test

License

MIT