diff options
| author | Priyansh <[email protected]> | 2021-04-27 20:42:13 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2021-04-27 20:42:13 +0530 |
| commit | a8edac4105f007003c3f244b482d03732ce74398 (patch) | |
| tree | 1440e377da6b4ba18ca3151066efbafeed7a9c06 /src/systemLevelInformation.ts | |
| parent | b18cf71249b26d965215bcf06204daf6af5f55e7 (diff) | |
| download | styx-master.tar.xz styx-master.zip | |
Diffstat (limited to 'src/systemLevelInformation.ts')
| -rw-r--r-- | src/systemLevelInformation.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/systemLevelInformation.ts b/src/systemLevelInformation.ts index e902d32..43edcc9 100644 --- a/src/systemLevelInformation.ts +++ b/src/systemLevelInformation.ts @@ -5,10 +5,11 @@ import { extname, basename } from 'path'; class systemLevelInformation { - getUserInfo(): { username: string, homedir: string } { + getUserInfo(): { username: string, homedir: string, platform: string } { return { username: os.userInfo().username, - homedir: os.userInfo().homedir + homedir: os.userInfo().homedir, + platform: os.platform() }; } |
