sf-package-version-evaluator (npm): Command line util to get from dev hub version of 1gp/2gp package by expression: supports wildcards, ranges etc.
Keywords: 2gp|1gp|managedPackage|packageVersion