filetypeicons

npm package which gives fontawesome icons html depending upon the file extension

file-groups

File extensions and media types, grouped by application and type. Useful when you need to process or restrict processing to certain types of files.