https://github.com/caub/express-mids
Some useful Express.js middlewares
https://github.com/caub/express-mids
Last synced: 3 months ago
JSON representation
Some useful Express.js middlewares
- Host: GitHub
- URL: https://github.com/caub/express-mids
- Owner: caub
- Created: 2017-11-30T11:00:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T18:17:29.000Z (over 8 years ago)
- Last Synced: 2025-08-09T05:55:00.676Z (11 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Express-mids
A collection of express middlewares
```js
const express = require('express');
const {https, cors} = require('express-mids');
express().disable('x-powered-by') // meh
.use(https())
.use(cors({
ORIGINS: /\/hello.world$|\/localhost:\d+$/
}))
.listen(process.env.PORT || 3000);
```