flat-param

Parse url parameters, connect middleware.

npm install flat-param
1 downloads in the last week
4 downloads in the last month

Description

Parse url parameters, connect middleware.

Installation

npm install flat-param

Usage


var flatParam = require('flat-param');
var connect = require('connect');

var app = connect();
app.use(flatParam());

app.use(function(req, res, next) {
  var params = req.param;

  // We now got access to url parameters.
  console.log(params);
});

app.listen(3000);
npm loves you