mimetypeicon

    1.2.4 • Public • Published

    Mime Type Icon

    Site that provides mime type icons.

    Build Status npm version Known Vulnerabilities

    How to use

    You can use a file extension like /png /png, a filename like /xls excel.xls.

    You can also use the ?size=32 ?size=32 to get a consistent size of icons, and the ?default=... ?default=<name_of_icon> to force a default icon if not found the file extension.

    Examples

    /doc document.doc

    /docx document.docx

    /xls excel.xls

    /xlsx excel.xlsx

    /html page.html

    /jpeg image.jpeg

    /js file.js

    Using a default

    default=xml not-found.doc

    Returning an icon SVG

    /svg-format

    Credits

    Thanks to faenza-icon-theme

    This project was inspired in https://github.com/ptarjan/stdicon and http://darvin.github.io/mimetype-icon/

    Autor


    @giovanigenerali

    Install

    npm i mimetypeicon

    DownloadsWeekly Downloads

    11

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    13 MB

    Total Files

    763

    Last publish

    Collaborators

    • giovanigenerali