New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@todesktop/client-get-app-icon

Package Overview
Dependencies
Maintainers
5
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

- [ToDesktop Client Get App Icon](#todesktop-client-get-app-icon) - [Installation](#installation) - [Usage](#usage) - [Architecture](#architecture) - [Development](#development)

  • 0.3.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source
  • ToDesktop Client Get App Icon

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"));
	// data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKsAAADV.....
})();

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.

FAQs

Package last updated on 17 Dec 2021

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