set-type

DEPRECATED - Please use mime-types instead.

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 (reqres) {
  res.setHeader('Content-Type', set('html'))
  // => text/html; charset=utf-8 
})