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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.20
0.0.10

Package Sidebar

Install

npm i @nathanfaucett/mime

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • nathanfaucett