express-router-plus
Custom router class that provides extended functionality for express router
Last updated 4 years ago by fbatroni .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install express-router-plus 
SYNC missed versions from official npm registry.

express-router-plus NPM version Build Status Dependency Status Coverage percentage

Custom router class that provides extended functionality for express router

Installation

$ npm install --save express-router-plus

Usage

var expressRouterPlus = require('express-router-plus');
var express = require('express');
var app = express();
var router = new expressRouterPlus(app);

// setup your routes
var welcome = function(req, res){
  res.send(200, {data: 'world'});
};

// use express-router-plus to handle the incoming requests
app.get('/hello', router.handleRequest(welcome));

[2016-03-15 20:30:51.458] INFO express-router-plus Request #1 starting: GET /hello 127.0.0.1
[2016-03-15 20:30:51.462] INFO express-router-plus Request #1 finished: GET /hello 200 5ms

License

MIT © Fritz G. Batroni

Current Tags

  • 0.0.2                                ...           latest (4 years ago)

2 Versions

  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (17)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |