Created
February 14, 2015 12:29
-
-
Save kshirish/79e9bfcac3e06b19ff10 to your computer and use it in GitHub Desktop.
node api
This file contains hidden or 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
// all of exposed methods in os | |
// are basically informations about OS | |
var os = require('os'); | |
//console.log(os); | |
console.log(os.platform()); | |
console.log(os.arch()); | |
console.log(os.type()); | |
console.log(os.networkInterfaces()); | |
console.log(os.hostname()); | |
console.log(os.loadavg()); | |
console.log(os.uptime()); | |
console.log(os.freemem()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment