# har-server-middleware

> HAR (HTTP Archive) ファイルの内容をレスポンスする Express / connect ミドルウェアです。

Latest version **0.1.0** (published 2019-11-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install har-server-middleware
pnpm add har-server-middleware
yarn add har-server-middleware
bun add har-server-middleware
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2019-11-29 |
| First published | 2019-11-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Takayuki Shimada |
| Maintainers | tsmd |

## Links

- npm: https://www.npmjs.com/package/har-server-middleware
- npm.io page: https://npm.io/package/har-server-middleware

## Recent versions

- 0.1.0 (latest) — 2019-11-29
- 0.0.2 — 2019-11-25
- 0.0.1 — 2019-11-24

## README

# HAR Server Middleware

HAR (HTTP Archive) ファイルの内容をレスポンスする Express / connect ミドルウェアです。

## インストール

```sh
npm install --save har-server-middleware
```

## 使い方

### Express ミドルウェアとして利用する

```js
const express = require('express')
const app = express()

app.use('/', require('har-server-middleware')({ harFile: 'data.har' }))
```

### Webpack Dev Server ミドルウェアとして利用する

```js
module.exports = {
  //...
  devServer: {
    //...
    before(app) {
      app.use('/', require('har-server-middleware')({ harFile: 'data.har' }))
    }
  }
};
```

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