Retrieve an icon for a given file (Darwin only)
$ npm install --save mac-icons
const macIcons = require('mac-icons');
macIcons.getIcon().then(data => {
console.log(data);
})
Returns a Promise
with the base64 encoded string of the icon.
Type: String
The file's path.
MIT © Vu Tran