0.1.0 • Published 8 years ago

stattic-mime v0.1.0

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

stattic-mime

npm npm

Get the mime type for a suffix. Made for stattic.

Example of use:

//Import the mime method
var getMime = require('stattic-mime');

//Get the mime for a jpg file
var mime = getMime('jpg'); //Returns 'image/jpeg'

//Get the mime for an undefined extension
var mime = getMime('asdfg'); //Returns 'text/plain'