mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
11 lines
367 B
TypeScript
11 lines
367 B
TypeScript
import os from 'node:os';
|
|
import path from 'node:path';
|
|
|
|
export const systemPlatform = os.platform();
|
|
export const cpuArch = os.arch();
|
|
export const systemVersion = os.release();
|
|
// export const hostname = os.hostname(); // win7不支持
|
|
const homeDir = os.homedir();
|
|
export const downloadsPath = path.join(homeDir, 'Downloads');
|
|
export const systemName = os.type();
|