0.1.0 • Published 8 years ago
stattic-mime v0.1.0
stattic-mime
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'
0.1.0
8 years ago