set-type
DEPRECATED - Please use mime-types instead.
Last updated 7 years ago by fishrock123 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install set-type 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (7 years ago)

2 Versions

  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Downloads
Today 7
This Week 28
This Month 77
Last Day 6
Last Week 11
Last Month 68
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |