A library of utility functions for WoW Addons.
At the moment, contains the following functions for use in other Addons:
ns:PrettyPrint() — Prints a formatted message to the chat
ns:Contains() — Returns the index of a given value in a table or false if not found
ns:OptionValue() — Returns a key from the options table
ns:SetOptionDefault() — Set default values for options which are not yet set
ns:Toggle() — Toggles a feature with a specified timeout
ns:PlaySound() — Plays a sound if option is enabled
ns:OpenSettings() — Opens the Addon settings menu and plays a sound
Somewhat a work-in-progress, although being folded into some of my current Addons very soon.