A native module that allows you to fetch system file icons in macOS
npm install node-mac-file-iconUsing Yarn
``sh`
yarn add node-mac-file-icon
Using NPM
`sh`
npm install node-mac-file-icon
Add to main process
`js
import { getIcon } from 'node-mac-file-icon';
await getIcon('/Applications/Pages.app', './pages.png', 240)
``
The package is available as open source under the terms of the MIT License.