@nathanfaucett/mime

mime for the browser and node.js


Keywords
mime, mime.js
License
MIT
Install
npm install @nathanfaucett/mime@0.0.2

Documentation

Mime

mime for the browser and node.js

var mime = require("@nathanfaucett/mime");


// use fallback argument
mime.lookUp("test", "application/json") === "application/json";
mime.lookUp("test.json") === "application/json";
mime.lookUpType("json") === "application/json";
mime.lookUpExt("application/json") === "json";