Module for storing small amounts of data that persists across Hammerspoon restarts.
Values are stored in a dedicated UserDefaults suite named "hs.userdefaults", kept
separate from the app's own preferences so it doesn't get confused with Hammerspoon's
own configuration when inspected with tools like the defaults command line utility.
Because the suite is just a standard macOS preferences domain, it can also be inspected
# Read every value stored by hs.userdefaults defaultsreadhs.userdefaults
# Read a single key defaultsreadhs.userdefaultssomeKey
# Write a value from the command line defaultswritehs.userdefaultssomeKey"some value"
# Delete a key defaultsdeletehs.userdefaultssomeKey
information such as passwords, API keys, or tokens.
Module for storing small amounts of data that persists across Hammerspoon restarts. Values are stored in a dedicated
UserDefaultssuite named "hs.userdefaults", kept separate from the app's own preferences so it doesn't get confused with Hammerspoon's own configuration when inspected with tools like thedefaultscommand line utility. Because the suite is just a standard macOS preferences domain, it can also be inspectedinformation such as passwords, API keys, or tokens.