@nathanfaucett/mime

0.0.2 • Public • Published

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";

Readme

Keywords

Package Sidebar

Install

npm i @nathanfaucett/mime

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • nathanfaucett