Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/epoch/jsonapi-request-logger


https://github.com/epoch/jsonapi-request-logger

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

# JSON API request logger

Development HTTP request logger middleware for express.js JSON APIs

## Installation

```sh
$ npm install jsonapi-request-logger
```

## Quick start

```js
const express = require('express')
const requestLogger = require('jsonapi-request-logger')
const app = express()

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

app.listen(3000)
```

## Liscense

[MIT](LICENSE)