set-type
DEPRECATED - Please use mime-types instead.
Last updated 11 years ago by fishrock123 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm 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 (11 years ago)

2 Versions

  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |