Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qiwi/mware
Common express/nestjs middlewares
https://github.com/qiwi/mware
js-platform
Last synced: 4 days ago
JSON representation
Common express/nestjs middlewares
- Host: GitHub
- URL: https://github.com/qiwi/mware
- Owner: qiwi
- License: mit
- Created: 2018-04-23T12:26:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-04T23:25:53.000Z (4 months ago)
- Last Synced: 2024-07-16T14:21:14.994Z (4 months ago)
- Topics: js-platform
- Language: JavaScript
- Homepage:
- Size: 12.5 MB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mware
[![CI](https://github.com/qiwi/mware/workflows/CI/badge.svg)](https://github.com/qiwi/mware/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/c46b48482b78c4f6c2c0/maintainability)](https://codeclimate.com/github/qiwi/mware/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/c46b48482b78c4f6c2c0/test_coverage)](https://codeclimate.com/github/qiwi/mware/test_coverage)Common middlewares collection.
### Install
```bash
yarn add @qiwi/mware
npm i @qiwi/mware
```### Middlewares
* [mware-mdc](packages/mdc/README.md)
* [mware-logger](packages/logger/README.md)
* [mware-crumbs](packages/crumbs/README.md)
* [mware-cors](packages/cors/README.md)
* [mware-validator](packages/validator/README.md)### Usage
```javascript
import {cors, mdc} from '@qiwi/mware'
import express from 'express'const app = express()
app.use(cors())
app.use(mdc())
app.listen(...)
```