Get OS memory stats in OSX and Linux.
npm install node-free
var memory = require('node-free');
memory.total(); // total memory in bytes
memory.used(); // used memory in bytes
memory.free(); // free memory in bytes
Prettify output with bytes
- OSX
- Centos 6 and 7