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

yach.electron.ipcrenderer

Package Overview
Dependencies
Maintainers
5
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.electron.ipcrenderer

yach electron: ipc renderer

  • 0.0.7
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-94.12%
Maintainers
5
Weekly downloads
 
Created
Source

yach.electron.ipcrenderer

yach渲染进程ipc封装

安装

npm i yach.electron.ipcrenderer

ipc-info

getVersion

import { getVersion } from 'yach.electron.ipcrenderer';

// 获取客户端版本号
getVersion((v) => {
	console.log(v);
});

getClientEnv

import { getClientEnv } from 'yach.electron.ipcrenderer';

// 获取客户端环境
getClientEnv((e) => {
	console.log(e);
});

getClientOsinfo

import { getClientOsinfo } from 'yach.electron.ipcrenderer';

// 获取客户端os
getClientOsinfo((o) => {
	console.log(o);
});

ipc-log

log

import { log } from 'yach.electron.ipcrenderer';

// 通过主进程写本地日志
// project 必传,代码项目名
// namespace 命名空间,开发者姓名全拼
// unit 模块单元
//  ...msg 其他信息
log(project, namespace, unit, ...msg);

ipc-window-operation

show

import { show } from 'yach.electron.ipcrenderer';

// 显示窗口
// targetWindow 目标窗口
show(targetWindow);

hide

import { hide } from 'yach.electron.ipcrenderer';

// 隐藏窗口
// targetWindow 目标窗口
hide(targetWindow);

max

import { max } from 'yach.electron.ipcrenderer';

// 最大化窗口
// targetWindow 目标窗口
max(targetWindow);

min

import { min } from 'yach.electron.ipcrenderer';

// 最小化窗口
// targetWindow 目标窗口
min(targetWindow);

close

import { close } from 'yach.electron.ipcrenderer';

// 关闭窗口
// targetWindow 目标窗口
close(targetWindow);

quit

import { quit } from 'yach.electron.ipcrenderer';

// 退出程序
// targetWindow 目标窗口
quit(targetWindow);

version

0.0.4.20200705

  1. 更新readme

0.0.3.20200627

  1. ipc window operation

0.0.2.20200626

  1. ipc info

0.0.1.20200613

  1. init project
  2. electron log add project

FAQs

Package last updated on 05 Jul 2020

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