Memmonit
A library to help monitor operating system memory. Has typescript support!
Installation
npm install memmonit --save
Parameter information (conversion units)
Each method takes as a parameter the unit that wants to receive the memory information. The available units are Kilobyte (kB), Megabyte (MB) and Gigabytes (GB).
Usage examples
- ## Get memory usage
let memmonit = MemoryMonitoring; let memoryUsage = memmonit;console; //2.015354681 let memoryUsageTrunc = memmonit;console; //2 let memoryUsageFixed = memmonit;console; //2.02
- ## Get memory total
let memmonit = MemoryMonitoring; let memoryTotal = memmonit;console; //15.364312 let memoryTotalTrunc = memmonit;console; //15 let memoryTotalFixed = memmonit;console; //15.36
- ## Register memory usage Records the memory monitoring in the file passed in the first parameter of the method
let memmonit = RegisterMonitoring; memmonitmemmonitmemmonit