Skip to content

statticjs/stattic-mime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published