node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

memory

memory

Node.js module to grab your current memory usage in various formats

Why? Pretty common helper function, easier to just require() than /lib/ it over & over

$ npm install memory

Example (basic)

var memory = require("memory");
 
var mb = memory();
console.log("Memory usage: ", mb);

Example (with options)

var memory = require("memory");
 
var mb = memory(4, true);
console.log("Memory usage: ", mb);