giffo-mime

0.0.2 • Public • Published

###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

Readme

Keywords

Package Sidebar

Install

npm i giffo-mime

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • giffo