request-tracker-middleware
v0.0.2
Published
A Connect style middleware for tracking Node.js HTTP request and response.
Downloads
1
Readme
request-tracker-middleware
A Connect style middleware for tracking Node.js HTTP request and response.
Install
npm i request-tracker-middleware
Example
const http = require('http')
const connect = require('connect')
const tracker = require('request-tracker-middleware')({
app: 'my-project',
mongodb: 'mongodb://localhost/request-tracker-example',
options: {
immediate: true
}
})
const app = connect()
// use request-tracker-middleware middleware
app.use(tracker)
// create node.js http server and listen on port
http.createServer(app).listen(3000)
License
MIT