Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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)
```