0.0.4 • Published 6 months ago
mac-memory-ts v0.0.4
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
// }
})()