mimetype-to-fontawesome
v2.1.0
Published
Convert mimetype to appropriate Font Awesome class name.
Downloads
1,847
Maintainers
Readme
mimetype-to-fontawesome
Convert mimetype to appropriate Font Awesome class name.
Install
npm install mimetype-to-fontawesome
Usage
var mimetype2fa = require('mimetype-to-fontawesome')({ prefix: 'fa-' })
console.log(mimetype2fa('foo/bar')) // fa-file
console.log(mimetype2fa('image/png')) // fa-file-image
// ... see index.js