brew install whomwah/tap/<formula>
Or brew tap whomwah/tap and then brew install <formula>.
brew help, man brew or check Homebrew's documentation.
A simple utility that scans a path and when provided with a string will return the parent directory of that string. It's super fast too.
brew install whomwah/tap/findd