set-type

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i set-type

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • fishrock123
  • dougwilson
  • jongleberry
  • defunctzombie