$ gnpm install set-type
DEPRECATED - Please use mime-types instead.
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
})
Copyright 2013 - present © cnpmjs.org | Home |