mac-memory-ts
v0.0.4
Published
get memory total and used from MacOS using vm_stat
Downloads
7
Readme
mac-memory-ts
Unable to find correct memory getting solution? Everything doesn't agree with Activity Monitor? mac-memory-ts will help you :)
import macMemory from 'mac-memory-ts'
(async () => {
console.info(await macMemory())
// {
// usedPercent: 83.75, -> percent
// used: 28778336256, -> bytes
// total: 34359738368 -> bytes
// }
})()