mimetype-to-fontawesome

    2.0.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
    

    Install

    npm i mimetype-to-fontawesome

    DownloadsWeekly Downloads

    492

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    6.78 kB

    Total Files

    5

    Last publish

    Collaborators

    • loicmahieu