Nefarious Pomegranate Magnate

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

    Keywords

    none

    Install

    npm i set-type

    DownloadsWeekly Downloads

    11

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • defunctzombie
    • jongleberry
    • fishrock123
    • dougwilson