Skip to content

GaiAma/micro-nosniff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prevent mime type sniffing for ▲ Zeit's 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)