osx-extra
v1.0.3
Published
OS module with extra/updated methods.
Downloads
14
Maintainers
Readme
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.