0.0.3 • Published 10 years ago

wpill v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

Watch For Express

This is a little tool to extract data from 'req' and prepare for save it as a JSON.

Tests

mocha

Usage

Start database

mongod --dbpath ....../data/wpill

Next sample intercepts all request:

var express = require('express');
var app = express();

//Utils
var WPill = require('wpill').WPill;
var wpill =  new WPill("mongodb://127.0.0.1/wpill")

app.all('*', function(req, res, next){
  wpill.What(req,'page_view');
  next();
});
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago