associated-icon
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Associated Icon v1.2.0

Instalation

npm install associated-icon

Supported Platforms

  • Windows
  • MacOS X

Use example

import AssociatedIcon from 'associated-icon';
 
async function main() {
    let associatedIcon = new AssociatedIcon(); // or new AssociatedIcon(true); (this will use execFile instead of spawn, so this will work in electron)
    let response = await associatedIcon.getBase64Icon('[PATH_TO_APPLICATION_OR_SHORTCUT]');
    response.Base64Image // App icon in base64
    response.Path // if it's shortcut, here will be original exe's path
}
 
main();

/associated-icon/

    Package Sidebar

    Install

    npm i associated-icon

    Weekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • rvmoldova