Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including humem with all npm packages installed. Try it out:

var humem = require("humem")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

humem v0.1.1

Human Readable real time memory stats.

HuMem Build Status

Human Readable real time memory stats.

Install

$ npm install --save humem

Usage

Node.js
var humem = require('humem');

console.log(humem.freemem); // 4 GB
// Open up some app which will eat up some memory.

console.log(humem.freemem); // 2.36 GB

Properties

humem.totalmem -> Returns the total amount of system memory in human readable format.

humem.freemem -> Returns the amount of free system memory in human readable format.

humem.usedmem -> Returns the amount of system memory used in human readbale.format.

License

MIT © Hemanth.HM

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free