In node JS, for a display of files, I would like to get the icon windows will use for a file.
Similarly to how chrome will show the correct icon considering the local handler. For example, when downloading a .psd file, when Photoshop is installed chrome will show the Icon assigned by photoshop.
I can only think of manually checking the classes in registry, but is there a better way?
Is there any way to query the OS in order to find a suitable icon?
Thanks.