mac-extension-icon
v0.0.4
Published
Get the Finder icon for a file extension
Downloads
10
Maintainers
Readme
mac-extension-icon
Get the native macOS icon for a specific file extension as a PNG image buffer.
var getIconForExtension = require('mac-extension-icon').getIconForExtension
getIconForExtension('.mp3', function (error, pngBuffer) {
require('fs').writeFileSync('mp3.png', pngBuffer)
})