hammerspoon2-docs
    Preparing search index...

    Function primaryInterface

    • Returns the name of the primary network interface, i.e. the one currently providing the default route.

      Returns string | null

      The BSD interface name (e.g. "en0"), or null if no primary interface can be determined.