确定路径(OS /平台可移植) 安装(CJS / ESM / TypeScript) npm install xdg-portable # or... `npm install "git:github.com/rivy/js.xdg-portable"` # or... `npm install "git:github.com/rivy/js.xdg-portable#v8.0.0"` # or... `npm install "https://cdn.jsdelivr.net/gh/rivy/js.xdg-portable/dist/xdg-portable.tgz"` 用法 CommonJS(CJS) const xdg = require ( 'xdg-portable/cjs' ) ; const configDirs = xdg . configDirs ( ) ; cons