@tiaanduplessis/mem-monitor

1.0.1 • Public • Published

mem-monitor

Get memory usage stats for a process



Built with ❤︎ by tiaanduplessis and contributors

Table of Contents

Table of Contents About Install Usage Contribute License

About

A silly little logging utility to show the memory usage of a process. Inspired by this excellent post.

Install

$ npm install @tiaanduplessis/mem-monitor
# OR
$ yarn add @tiaanduplessis/mem-monitor

Usage

require('mem-monitor')()

This will log the info to your console:

example image

You can optionally specifiy the interval at which the stats should update (defaults to 3000ms).

Contributing

Contributions are welcome!

  1. Fork it.
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or open up a issue.

License

Licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i @tiaanduplessis/mem-monitor

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tiaanduplessis