Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Module for reading `/proc/meminfo`
JavaScript
Branch: master
Pull request Compare This branch is 1 commit ahead of mmalecki:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
package.json

README.md

meminfo

meminfo is a module for reading /proc/meminfo data.

Installation

npm install meminfo

Usage

require('meminfo')(function (err, data) {
  console.dir(data);
});

Output:

{ MemTotal: '3145728',
  MemFree: '3062044',
  Buffers: '0',
  Cached: '0',
  SwapCached: '0',
  Active: '0',
  Inactive: '0',
  HighTotal: '0',
  HighFree: '0',
  LowTotal: '3145728',
  LowFree: '3062044',
  SwapTotal: '0',
  SwapFree: '0',
  Dirty: '0',
  Writeback: '0',
  AnonPages: '0',
  Mapped: '0',
  Slab: '0',
  PageTables: '0',
  NFS_Unstable: '0',
  Bounce: '0',
  CommitLimit: '0',
  Committed_AS: '0',
  VmallocTotal: '0',
  VmallocUsed: '0',
  VmallocChunk: '0',
  HugePages_Total: '0',
  HugePages_Free: '0',
  HugePages_Rsvd: '0',
  Hugepagesize: '2048' }
Something went wrong with that request. Please try again.