1.0.3 • Published 11 months ago

memstats v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

npm version CodeQL Build Status

memstats

A small tool for checking memory usage of the current Node.js process.

Install

npm install memstats --save

Usage

This package provides very small API for getting system memory statistics and uptime.

Examples

Example #1

const MemStats = require('memstats');

const stats = MemStats.json();

console.log(stats);

This will print the object with statistics:

{
  "maxMemoryAvailable": "4.04 Gb",
  "processMemoryUsed": "48.59 MB",
  "uptime": "0 min"
}

Tests

Run tests:

npm test

Run tests with code coverage:

npm run test-cov

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago