Operating System Memory Lab

33.3% Acceptance

In this lab, you will create a Node.js module which utilizes the os module to calculate different types of memory statistics such as total memory, free memory, and used memory in your system, and exports these as functions. You'll be required to write functions to fetch those memory statistics, as well as some helper functions for calculating percentage and pretty-printing memory sizes.

On completion of this lab, you will have gained experience with the os module and will have a better understanding of how to extract and manipulate system memory data using Node.js.

Note: All imports and exports should be using the ESM syntax.