mac-memory-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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
    // }
})()

Package Sidebar

Install

npm i mac-memory-ts

Weekly Downloads

1

Version

0.0.4

License

MIT

Unpacked Size

18.3 kB

Total Files

9

Last publish

Collaborators

  • x0333