Skip to content

wgenial/mimetypeicons-nodejs

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Dec 28, 2017
Sep 28, 2017
Dec 19, 2018
Sep 27, 2018
May 18, 2016
Sep 27, 2018
Jun 25, 2019
Jun 25, 2019
Dec 28, 2017
Dec 28, 2017

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