@franziz/morgan-middleware
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Morgan Middleware

This is middleware to capture morgan to @franziz/logger

How to Use

Use import the middlware and call handle() function. For example

import express from "express";
import MorganMiddleware from "@franziz/morgan-middleware";

const app = express();
app.use(MorganMiddlware.handle());
app.listen(3000, () => console.log("Connected to port 3000"));

Readme

Keywords

none

Package Sidebar

Install

npm i @franziz/morgan-middleware

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

4.43 kB

Total Files

12

Last publish

Collaborators

  • franziz