How to use the lookup function from send

Find comprehensive JavaScript send.lookup code examples handpicked from public code repositorys.

64
65
66
67
68
69
70
71
72
73
 * @api private
 */
exports.normalizeType = function (type) {
    return ~type.indexOf('/')
        ? acceptParams(type)
        : { value: mime.lookup(type), params: {} };
};
/**
 * Normalize `types`, for example "html" becomes "text/html".
 *
fork icon0
star icon1
watch icon0