How to find the version of a package?

In a package’s folder under ~/.julia/packages, there are a few folders with cryptic names. How can I find out which fold is of which version of the package? Or, how can I find out the version of a package I am currently using is under which folder?

Or, how can I find out the version of a package I am currently using is under which folder?

E.g.

julia> import BenchmarkTools; pathof(BenchmarkTools)
"/bla/BenchmarkTools/dtwnm/src/BenchmarkTools.jl"

(i.e., it points to the main .jl file, but you can find the directory from there).

2 Likes