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

/set-type/

    Package Sidebar

    Install

    npm i set-type

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • fishrock123
    • dougwilson
    • jongleberry
    • defunctzombie