How to use the send.mime.lookup function in send

To help you get started, we’ve selected a few send examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github visionmedia / superagent / test / support / express / utils.js View on Github external
exports.normalizeType = function(type) {
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github jszoo / cat-mvc / mvc / httpHelper.js View on Github external
normalizeType: function(type) {
        return ~type.indexOf('/') ? this.acceptParams(type) : { value: mime.lookup(type), params: {} };
    },
github joshlobaptista / Barista-Fullstack / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github koush / vysor.io / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github tangdu / mblog / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github ILIAS-eLearning / ILIAS / Modules / Chatroom / chat / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github Lapple / ErrorBoard / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github IHTSDO / sct-snapshot-rest-api / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};
github taskcluster / taskcluster / services / index / node_modules / taskcluster-base / node_modules / express / lib / utils.js View on Github external
exports.normalizeType = function(type){
  return ~type.indexOf('/')
    ? acceptParams(type)
    : { value: mime.lookup(type), params: {} };
};

send

Better streaming static file server with Range and conditional-GET support

MIT
Latest version published 2 months ago

Package Health Score

89 / 100
Full package analysis