npm.io
1.0.0 • Published 4 years ago

icon-extractor-win

Licence
Apache-2.0
Version
1.0.0
Deps
0
Size
14.4 MB
Vulns
0
Weekly
0

icon-extractor-win

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.

Usage

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');

Keywords