New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

node-api-tracker

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-api-tracker

logging middleware to track API calls

npmnpm
Version
1.0.0
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 18 Nov 2021

Related posts