# lws-request-monitor

> Adds request and response logging to lws verbose output

Latest version **2.0.0** (published 2020-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install lws-request-monitor
pnpm add lws-request-monitor
yarn add lws-request-monitor
bun add lws-request-monitor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-02-09 |
| First published | 2017-07-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lloyd Brookes |
| Maintainers | 75lb |
| Keywords | lws, lws-middleware |

## Links

- npm: https://www.npmjs.com/package/lws-request-monitor
- Repository: https://github.com/lwsjs/request-monitor
- Homepage: https://github.com/lwsjs/request-monitor#readme
- Issues: https://github.com/lwsjs/request-monitor/issues
- npm.io page: https://npm.io/package/lws-request-monitor

## Dependencies (1)

- [byte-size](https://npm.io/package/byte-size.md) ^6.2.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-02-09
- 1.0.4 — 2019-06-09
- 1.0.3 — 2019-06-05
- 1.0.2 — 2019-06-05
- 1.0.1 — 2019-06-03
- 1.0.0 — 2019-05-29
- 0.1.5 — 2017-07-09
- 0.1.4 — 2017-07-08
- 0.1.3 — 2017-07-07
- 0.1.2 — 2017-07-06
- 0.1.1 — 2017-07-04
- 0.1.0 — 2017-07-01

## README

[![view on npm](https://img.shields.io/npm/v/lws-request-monitor.svg)](https://www.npmjs.org/package/lws-request-monitor)
[![npm module downloads](https://img.shields.io/npm/dt/lws-request-monitor.svg)](https://www.npmjs.org/package/lws-request-monitor)
[![Build Status](https://travis-ci.org/lwsjs/request-monitor.svg?branch=master)](https://travis-ci.org/lwsjs/request-monitor)
[![Dependency Status](https://badgen.net/david/dep/lwsjs/request-monitor)](https://david-dm.org/lwsjs/request-monitor)
[![Coverage Status](https://coveralls.io/repos/github/lwsjs/request-monitor/badge.svg)](https://coveralls.io/github/lwsjs/request-monitor)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

# lws-request-monitor

Adds request and response logging to [lws](https://github.com/lwsjs/lws) verbose output.

Example command:

```
$ lws --stack request-monitor static index --verbose
```

Example verbose output:


```js
{
  'server.request': {
    requestId: 1,
    method: 'GET',
    url: '/package-lock',
    headers: {
      host: '192.168.0.200:8000',
      'user-agent': 'curl/7.65.0',
      accept: '*/*'
    }
  }
}
{
  'server.response': {
    requestId: 1,
    statusCode: 200,
    headers: [Object: null prototype] {
      'content-length': '27212',
      'last-modified': 'Wed, 05 Jun 2019 11:59:01 GMT',
      'cache-control': 'max-age=0',
      'content-type': 'application/json; charset=utf-8'
    },
    body: [ ReadStream: /Users/lloyd/Documents/lwsjs/examples/static-index/package-lock.json ]
  }
}
```

* * *

&copy; 2017-20 Lloyd Brookes \<75pound@gmail.com\>.

---
_Source: https://npm.io/package/lws-request-monitor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
