Initial commit

This commit is contained in:
Yinan Qin
2026-01-17 00:15:37 +08:00
committed by GitHub
commit 2250f89266
38 changed files with 1241 additions and 0 deletions

4
src/demos/ipc.ts Normal file
View File

@@ -0,0 +1,4 @@
window.ipcRenderer.on('main-process-message', (_event, ...args) => {
console.log('[Receive Main-process message]:', ...args)
})

8
src/demos/node.ts Normal file
View File

@@ -0,0 +1,8 @@
import { lstat } from 'node:fs/promises'
import { cwd } from 'node:process'
lstat(cwd()).then(stats => {
console.log('[fs.lstat]', stats)
}).catch(err => {
console.error(err)
})