Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@todesktop/client-get-app-icon

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@todesktop/client-get-app-icon

Retrieve the icon of a file or app.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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.....
})();

FAQs

Package last updated on 24 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc