-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f7220e
commit 58e7902
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const os = require('os'); | ||
|
||
//to know system architecture | ||
console.log(os.arch()); | ||
|
||
//to know RAM info | ||
console.log(os.freemem()); | ||
|
||
//to convert this free memory in gb:- | ||
console.log(os.freemem()/(1024*1024*1024)); | ||
|
||
// to know the total space/memory of RAM | ||
console.log(os.totalmem()/(1024*1024*1024)); | ||
|
||
//to know pc name/host name | ||
console.log(os.hostname()); | ||
|
||
// to know the plateform/os | ||
console.log(os.platform()); | ||
|
||
//to know user info | ||
console.log(os.userInfo()); |