Skip to content

Instantly share code, notes, and snippets.

@kshirish
Created February 14, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kshirish/79e9bfcac3e06b19ff10 to your computer and use it in GitHub Desktop.
Save kshirish/79e9bfcac3e06b19ff10 to your computer and use it in GitHub Desktop.
node api
// 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