0.1.2 • Published 7 years ago
mac-icons v0.1.2
mac-icons
Retrieve an icon for a given file (Darwin only)
Install
$ npm install --save mac-icons
Usage
const macIcons = require('mac-icons');
macIcons.getIcon().then(data => {
console.log(data);
})
API
getIcon(filePath)
Returns a Promise
with the base64 encoded string of the icon.
filePath
Type: String
The file's path.
License
MIT © Vu Tran