🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

real-time-api-log

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

real-time-api-log

A simple API logger middleware for Node.js

1.1.5
latest
Source
npm
Version published
Maintainers
1
Created
Source

API Logger

A simple API logger built with Node.js and Express.

Features

  • Logs incoming API requests to a logger page.
  • Captures method, URL, headers, body, and timestamp.
  • Easy to integrate with existing Express applications.

Prerequisites

  • Node.js installed.

Installation

  • Install dependencies:

    npm install real-time-api-log
    
  • Import the logger middleware:

    const realTimeApiLog = require('real-time-api-log');
    
  • use the logger middleware in your express app:

    app.use(realTimeApiLog);
    
  • View the Logger Page:

    Get the url to view the logger page to view the logged API requests in your browser eg: http://localhost:3000/logs .

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

api

FAQs

Package last updated on 07 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts