多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 常用工具函数 ``` const { Util } = require('leanpro.common'); ``` 函数 ``` class Util { static delay(milliseconds: number): Promise<void>; static launchProcess(exePath: string, ...args: string[]): ChildProcess; static launchProcess(exePaths: string, args: string[], options: SpawnOptions): ChildProcess; static stopProcess(proc: ChildProcess): boolean; static takeScreenshot(filePath: string = null, monitor: number = 0): string | void; static loadCsvFile(filePath: string): Promise<RowCsv[]>; static saveToCsvFile(rows: RowCsv[], filePath: string): boolean; static getClipboard(): Promise<string>; static setClipboard(text: string): Promise<void>; static copyDir(sourceDir, destDir): Promise<void>; } ```