GitHunt
VU

vutran/mac-icons

Retrieve an icon for a given file (Darwin only)

mac-icons

Travis Coveralls branch license

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

Languages

JavaScript100.0%

Contributors

Latest Release

0.1.2January 3, 2017
MIT License
Created December 30, 2016
Updated January 19, 2021