# e-statics

> Express request statics counter

Latest version **0.0.5** (published 2018-12-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install e-statics
pnpm add e-statics
yarn add e-statics
bun add e-statics
```

## 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.0.5 |
| Published | 2018-12-14 |
| First published | 2018-12-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tatu Mehtäläinen |
| Maintainers | taddu |

## Links

- npm: https://www.npmjs.com/package/e-statics
- Repository: https://github.com/TaDDu/e-statics
- Homepage: https://github.com/TaDDu/e-statics#readme
- Issues: https://github.com/TaDDu/e-statics/issues
- npm.io page: https://npm.io/package/e-statics

## Recent versions

- 0.0.5 (latest) — 2018-12-14
- 0.0.4 — 2018-12-14
- 0.0.2 — 2018-12-14
- 0.0.1 — 2018-12-14

## README

# e-statics   

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]

Module for express statics, returns
```js
{
"GET": 0,
"POST": 0,
"PUT": 0,
"DELETE": 0,
"TOTAL": 0,
"LAST_MS": 0,
"AVG_MS": 0,
"MIN_MS": 0,
"MAX_MS": 0,
"TOTAL_MS": 0
}
```

### Installation
npm install e-statics --save

### Usage
e-statics adds automatically get route(/e-statics) to your routes.
```js

const express = require("express");
const app = express();
const eStatics = require("e-statics")(app);
app.use(eStatics.counter);
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(8080, () => console.log(`Example app listening on port ${port}!`))
```

If you dont want to use this route just dont add app to e-statics

```js

const express = require("express");
const app = express();
const eStatics = require("e-statics")();
app.use(eStatics.counter);
app.get('/', (req, res) => res.send('Hello World!'))
app.get('/my-stats-route', (req, res) => res.send(eStatics.stats))
app.listen(8080, () => console.log(`Example app listening on port ${port}!`))
```



[npm-image]: https://img.shields.io/npm/v/e-statics.svg
[npm-url]: https://npmjs.org/package/e-statics
[downloads-image]: https://img.shields.io/npm/dt/e-statics.svg
[downloads-url]: https://npmjs.org/package/e-statics

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