This package is a simple nodejs package to extract icons from Windows executables.
This package supports the extraction of icons from .exe, .lnk and .url files. It will always return the highest available resolution.
To get the icon from a Windows executable, you can use the following function. The output will be a base64 data URL.
const winIconExtractor = require('icon-extractor-win');
await winIconExtractor.getIcon('C:/path/to/file.exe');
import { getIcon } from 'icon-extractor-win';
await getIcon('C:/path/to/file.exe');