Skip to content

wgenial/mimetypeicons-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

53 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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