wie

win-icon-extractor

Extracts icon resource from any windows binary or file to base64 PNG string.

Showing:

Popularity

Downloads/wk

1

GitHub Stars

5

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

5

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Windows Icon Extractor

This module attempts to extract icons of any windows path and returns PNG represented by base64 string.

Limitations

  • only runs on windows (uses internal windows libraries)
  • the result is always 32x32

Changelog

1.0.4

  • Unicode paths accepted now!
  • Fixed occasional failture to load icon (caused by wrong memory management)
  • Fixed possible memory leak

Installation

Using npm:

npm install win-icon-extractor --save

Usage

This module consists of single exported function. This function returns promise, which returns base64 encoded png data.


var extractIcon = require('win-icon-extractor');

extractIcon("binary.exe").then((result) => {
    // Prints "data:image/png;base64,iVB...."
    console.log(result);
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial