# @squzy/express

> Basic wrapper for Squzy Monitoring Express

Latest version **1.10.0** (published 2020-07-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @squzy/express
pnpm add @squzy/express
yarn add @squzy/express
bun add @squzy/express
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.10.0 |
| Published | 2020-07-19 |
| First published | 2020-06-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Iurii Panarin |
| Maintainers | pxyup |

## Links

- npm: https://www.npmjs.com/package/@squzy/express
- Repository: https://github.com/squzy/squzy_node
- Homepage: https://github.com/squzy/squzy_node#readme
- Issues: https://github.com/squzy/squzy_node/issues
- npm.io page: https://npm.io/package/@squzy/express

## Dependencies (3)

- [@squzy/core](https://npm.io/package/@squzy/core.md) ^1.10.0
- [on-finished](https://npm.io/package/on-finished.md) ^2.3.0
- [@types/on-finished](https://npm.io/package/@types/on-finished.md) ^2.3.1

## Recent versions

- 1.10.0 (latest) — 2020-07-19
- 1.9.0 — 2020-07-07
- 1.8.0 — 2020-06-21
- 0.1.21-alpha.0 — 2020-06-21
- 0.1.20-alpha.0 — 2020-06-20
- 0.1.19-alpha.0 — 2020-06-20
- 0.1.18-alpha.0 — 2020-06-20
- 0.1.17-alpha.0 — 2020-06-20
- 0.1.16-alpha.0 — 2020-06-20
- 0.1.15-alpha.0 — 2020-06-20
- 0.1.14-alpha.0 — 2020-06-20
- 0.1.13-alpha.0 — 2020-06-19
- 0.1.12-alpha.0 — 2020-06-19
- 0.1.11-alpha.0 — 2020-06-19
- 0.1.10-alpha.0 — 2020-06-19
- … 16 more at https://npm.io/package/@squzy/express/versions

## README

# @squzy/express

Package for usage that inside express application

## How to use

```bash
npm install @squzy/express --save
```

It is should be on route level, because on root level it is impossible to get access to matched router without patching(we dont wanna do that)

```typescript
import { createMiddleware } from "@squzy/express"
import { createApplication } from "@squzy/core"

const application = await createApplication({
    apiHost: "http://localhost:8080",
    name: "nodejs"
})

const router = express.Router();

router.get('/adamin/:name', createMiddleware(application), function (req, res) {
    //console.log(req.route)
    res.send('hello world')
})

```

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