New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@taotiejs/http

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taotiejs/http

HTTP logger of Taotie, base on pino-http

latest
Source
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

Taotie HTTP

npm npm downloads license

github

HTTP logger of Taotie, base on pino-http.

It outputs meaningful log message:

GET /api 200 10ms

Installation

npm install @taotiejs/http

Usage

All usages as same as pino-http.

More Options

customLogFormatter

options.customLogFormatter = function(req, res) {
  return [{
    res,
    responseTime: res.responseTime,
  }, `${req.method} ${req.url} ${res.statusCode} ${res.responseTime}ms`]
}

Server

You may use @taotiejs/server for log collecting and querying.

Keywords

http

FAQs

Package last updated on 05 Mar 2021

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