Check version via brew info <package_name> command, cask command is not valid any more. If you know you are searching for a GUI app, you can specify brew info --cask <package_name>.
E.g.
$ brew info --cask libreoffice
libreoffice: 7.0.4 <----- VERSION COMES HERE
https://www.libreoffice.org/
Not installed
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/libreoffice.rb
==> Name
LibreOffice
==> Description
Free cross-platform office suite
...
P.S. More simple way I tried is to google like evernote version brew, and on Brew page there's info.
P.P.S. Could anyone open it up how to check JSON package directly from formulae/cask name, e.g. this?
jqto extract the version number:curl -s https://formulae.brew.sh/api/cask/evernote.json | jq -r .version– nohillside Jan 17 '21 at 14:23