node-api-tracker

1.0.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i node-api-tracker

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

1.1 kB

Total Files

4

Last publish

Collaborators

  • beardon