2.1.1 • Published 5 years ago

package-installed-version-sync v2.1.1

Weekly downloads
293
License
MIT
Repository
github
Last release
5 years ago

package-installed-version-sync

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).

Usage

const packageInstalledVersionSync = require('package-installed-version-sync');

const jestVersion = packageInstalledVersionSync('jest'); // => 21.0.1

Changelog

  • 2.0.2 - fixed error with NPM installed packages from GitHub repos
  • 2.0 - now uses lockfiles (yarn.lock or package-lock.json) when available for faster result and compatibility with Yarn.
2.1.1

5 years ago

2.1.0

6 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago