Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GaiAma/micro-nosniff
Prevent mime type sniffing for ▲ Zeit's Micro
https://github.com/GaiAma/micro-nosniff
headers micro micro-plugin middleware middlewares rest zeit zeit-now
Last synced: 2 months ago
JSON representation
Prevent mime type sniffing for ▲ Zeit's Micro
- Host: GitHub
- URL: https://github.com/GaiAma/micro-nosniff
- Owner: GaiAma
- License: mit
- Created: 2018-04-25T01:47:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T22:59:49.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T13:55:34.672Z (9 months ago)
- Topics: headers, micro, micro-plugin, middleware, middlewares, rest, zeit, zeit-now
- Language: TypeScript
- Homepage:
- Size: 1.62 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micro - micro-nosniff - Prevents mime type sniffing (Modules / Middlewares)
README
# Prevent mime type sniffing for ▲ Zeit's [micro](https://github.com/zeit/micro/)
#### Written in Typescript since v1.1.0
### Installation
```
yarn add micro-nosniff
```### Usage
```
import nosniff from 'micro-nosniff'
const handler = (req, res) => send(res, 200, 'ok!')module.exports = nosniff(handler)
```