Synchronously returns installed version of a dependency package
It sometimes useful to get exact currently installed version of a dependency and this package doing exactly that one thing synchronously (with caching).
const packageInstalledVersionSync = ;const jestVersion = ; // => 21.0.1
- 2.0.2 - fixed error with NPM installed packages from GitHub repos
- 2.0 - now uses lockfiles (
package-lock.json) when available for faster result and compatibility with Yarn.