Skip to content

Node module to get the default Finder icon for a file extension (macOS only)

Notifications You must be signed in to change notification settings

kevinsawicki/mac-extension-icon

Repository files navigation

mac-extension-icon Build Status

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)
})

About

Node module to get the default Finder icon for a file extension (macOS only)

Resources

Stars

Watchers

Forks

Packages

No packages published