@todesktop/plugin-get-app-icon
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

ToDesktop Get App Icon

Retrieve the icon of a file or app.

Installation

Install @todesktop/client-get-app-icon in your client-side application using

npm install @todesktop/client-get-app-icon

Installation of the plugin package is also necessary. Using ToDesktop Builder, navigate to Plugins. Click on the Explore button for "Get App Icon" and install the package.

Usage

extractIcon

Get the icon of a file or app as a PNG image.

import { extractIcon } from "@todesktop/client-get-app-icon";

(async () => {
  console.log(await extractIcon("path/to/icon"));
  // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADV.....
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @todesktop/plugin-get-app-icon

Weekly Downloads

1

Version

0.4.0

License

ISC

Unpacked Size

3.61 kB

Total Files

9

Last publish

Collaborators

  • isaacaderogba
  • megahertz
  • davej