mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-26 03:31:24 +08:00
8 lines
187 B
TypeScript
8 lines
187 B
TypeScript
import fs from 'node:fs'
|
|
|
|
export default class FileService {
|
|
public static async readFile(_: Electron.IpcMainInvokeEvent, path: string) {
|
|
return fs.readFileSync(path, 'utf8')
|
|
}
|
|
}
|