set-type
v1.0.1
Published
DEPRECATED - Please use mime-types instead.
Downloads
19
Keywords
Readme
DEPRECATED - Please use mime-types instead.
Set Type
Return a well-formatted content type header given an extension.
var set = require('set-type')
app.use(function (req, res) {
res.setHeader('Content-Type', set('html'))
// => text/html; charset=utf-8
})