Nocturnal Parakeet Monitor

    package-installed-version-sync

    2.1.1 • Public • Published

    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.

    Install

    npm i package-installed-version-sync

    DownloadsWeekly Downloads

    2

    Version

    2.1.1

    License

    MIT

    Unpacked Size

    7.83 kB

    Total Files

    4

    Last publish

    Collaborators

    • tinovyatkin