mac-extension-icon

Get the Finder icon for a file extension


Keywords
Finder, Preview, icon, NSImage
License
MIT
Install
npm install mac-extension-icon@0.0.4

Documentation

mac-extension-icon

Get the PNG Finder image for a file extension.

var getIconForExtension = require('mac-extension-icon').getIconForExtension
getIconForExtension('.mp3', function (error, pngBuffer) {
  require('fs').writeFileSync('mp3.png', pngBuffer)
})