New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

free-memory

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

free-memory

Gets system memory information (from free) in a nicely formatted way.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
decreased by-20.37%
Maintainers
1
Weekly downloads
 
Created
Source

node-free-memory

Gets system memory information (from free) in a nicely formatted way.

Usage

var free = require("free-memory")

free(function (err, info) {

    console.log(info);
    /* Outputs:
    {
        mem: {
            total: 7663792,
            used: 6297348,
            free: 1366444,
            shared: 170644,
            buffers: 1672100,
            cached: 2042312,
            usable: 5080856 // free + buffers + cached
        },
        buffers: {
            used: 2582936,
            free: 5080856
        },
        cache: {
            used: 2582936,
            free: 5080856,
        },
        swap: {
            total: 8307708,
            used: 500,
            free: 8307208
        }
    }
    */

});

  • All values are integers in Kb, same as free output. Divide by 1024 to get MB.
  • mem.usable is same as mem.free + mem.buffers + mem.cached
  • buffers and cache are the same values.

Keywords

FAQs

Package last updated on 14 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc