node-api-tracker
v1.0.1
Published
logging middleware to track API calls
Downloads
1
Readme
api-tracker
This is a simple API Request Tracker Middleware, written in Node.JS.
Usage
const apiTracker = require('node-api-tracker');
var router.express.Router();
//before routes, define tracker middleware
router.use(apiTracker.create(yourSaveFunction));
This will capture the Request Path, the Method, and the Current Timestamp, which then is handed to your save function.
After this, it passes to the next function in the route stack.