1.0.1 • Published 2 years ago

node-api-tracker v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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.