1.0.3 • Published 1 year ago
osx-extra v1.0.3
osx-extra
Description
Module contains additional or modified methods to provide more details about OS.
The primary reason for creating this module was to address the issues with getting correct available memory information for macOS, since the code os.freemem()
does not make into account available
memory on Apple devices.
How to use
Examples of using this module can be found under ./example folder.
const osX = require("osx-extra");
const freeMem = osX.freemem();
console.log("Available memory in bytes = ", freeMem);
import osX from "osx-extra";
const freeMem = osX.freemem();
Benefits of using this module
- Zero dependencies
- Unit tests cover most of the functionality added or modified.