0.1.6 • Published 2 years ago

teda v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

npm version types size coverage vulnerabilities dependencies devDependencies License

small middleware for logging HTTP requests

Installation

$ npm i teda

Usage

import express from 'express';
import teda from 'teda';

const app = express();
app.use(teda(':method :url :status :content-length - :duration ms'));

app.get('/', (req, res) => {
    res.send('hello world!')
});

Predefined Formats

default

:remote-addr - [:date] ":method :url HTTP/:http-version" :status :content-length - :duration ms

tiny

:method :url :status :content-length - :duration ms

Tokens

  • :remote-addr
  • :method
  • :url
  • :http-version
  • :user-agent
  • :status
  • :date
  • :content-length
  • :duration

Licence

MIT License, see LICENSE

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago