ToDesktop Client Get App Icon
This is the repo for the ToDesktop Get App Icon client.
This is a zero-dependency package for interacting with @todesktop/plugin-get-app-icon. This package exposes a function for getting 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.
Usage
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"));
})();
Architecture
This package requires the following files:
src/index.ts
: exposes plugin functionality through strongly-typed, easy-to-use functions.src/generated/plugin.d.ts
: automatically generated types from @todesktop/plugin-get-app-icon
's index.ts
file.
Development
Refer to the root repo for development instructions.