hammerspoon2-docs
    Preparing search index...

    Function swapUsage

    • How much swap space is in use, in bytes. macOS grows and shrinks the swap space as it needs to, so total changes over time and is 0 when nothing is swapped out.

      Returns { available: number; total: number; used: number } | null

      Swap usage, or null if macOS wouldn't say

      • { available: number; total: number; used: number }
        • available: number

          How much of it is not in use

        • total: number

          The size of the swap space

        • used: number

          How much of it is in use

      • null