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

@todesktop/client-ipc

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@todesktop/client-ipc

- [ToDesktop Client IPC](#todesktop-client-ipc) - [Installation](#installation) - [Usage](#usage) - [Architecture](#architecture) - [Development](#development)

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-27.59%
Maintainers
4
Weekly downloads
 
Created
Source
  • ToDesktop Client IPC

ToDesktop Client IPC

This is the repo for the ToDesktop IPC client.

This is a zero-dependency package for interacting with @todesktop/plugin-ipc. This package exposes a set of functions for getting metadata about the active window.

Installation

Install @todesktop/client-ipc in your client-side application using

$ npm install @todesktop/client-ipc

Installation of the plugin package is also necessary.

Usage

Get metadata about the active window (title, id, bounds, owner, etc).

import { getActiveWin } from "@todesktop/client-ipc";

(async () => {
  console.log(await getActiveWin(options));
  /*
	{
		bounds: {
			x: 720,
			y: 330,
			height: 600,
			width: 800
		},
		id: 7184,
		memoryUsage: 1248,
		owner: {
			name: 'Simple App',
			processId: 56614,
			bundleId: 'com.google.Chrome',
			path: '/Applications/Google Chrome.app'
		},
		platform: "macos",
		title: 'Google',
	}
	*/
})();

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-ipc's index.ts file.

Development

Refer to the root repo for development instructions.

FAQs

Package last updated on 07 Feb 2022

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