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';
getClientOsinfo((o) => {
console.log(o);
});
ipc-log
log
import { log } from 'yach.electron.ipcrenderer';
log(project, namespace, unit, ...msg);
ipc-window-operation
show
import { show } from 'yach.electron.ipcrenderer';
show(targetWindow);
hide
import { hide } from 'yach.electron.ipcrenderer';
hide(targetWindow);
max
import { max } from 'yach.electron.ipcrenderer';
max(targetWindow);
min
import { min } from 'yach.electron.ipcrenderer';
min(targetWindow);
close
import { close } from 'yach.electron.ipcrenderer';
close(targetWindow);
quit
import { quit } from 'yach.electron.ipcrenderer';
quit(targetWindow);
version
0.0.4.20200705
- 更新readme
0.0.3.20200627
- ipc window operation
0.0.2.20200626
- ipc info
0.0.1.20200613
- init project
- electron log add project