0.0.2 • Published 8 years ago

giffo-mime v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

###giffo-mime

My method of getting the content-type of files from their filename

###install

npm install giffo-mime

###usage

var mime = require("giffo-mime");

var contentType = mime(filename);

###example

console.log(mime("hello.html"));

console.log(mime("super.png"));

results in:

text/html;charset=UTF-8
image/png
0.0.2

8 years ago

0.0.1

8 years ago