node-system-icon
node-system-icon copied to clipboard
Get associated file/folder icon for Node.js
It would be cool to be able to set icon too, not only to get it
This seems to work on NodeJS 13, at least on macOS Catalina. This is my first time ever working with node-gyp so please excuse any glaring mistakes!
macOS Catalina, Node 13.3.0 ``` > [email protected] install /Users/thelmgn/Documents/file/node_modules/system-icon > node-gyp rebuild CXX(target) Release/obj.target/addon/addon.o In file included from ../addon.cpp:1: In file included from ../system_icon.hpp:1: In file included from ../../nan/nan.h:202: In...
I try to get file icons and convert them to base64. This is my code (`test.js`): ``` javascript const { getIconForPath, ICON_SIZE_MEDIUM } = require("system-icon"); const filePath = "C:\\Users\\Oliver\\Desktop\\file.txt"; getIconForPath(filePath,...
This npm package is exactly what I have been looking for months! Currently I am building an app launcher for Windows and macOS and I struggle to get the system...
Hi, I've used `system-icon` on my Mac and everything works properly (thanks). But when I've run my application on Windows 10 this is always (almost) fetch default icon for files....