mimetype-to-fontawesome
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

mimetype-to-fontawesome

Greenkeeper badge Build Status

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i mimetype-to-fontawesome

    Weekly Downloads

    381

    Version

    2.1.0

    License

    ISC

    Unpacked Size

    7.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • loicmahieu