npm-check-git
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    npm-check-git

    Scans for outdated git dependencies.

    Node.js Package

    Usage

    As an example, we'll test if npm/libnpm is up to date.

    npm i npm-check-git github:npm/libnpm#latest
    

    To test programatically:

    import { getOutdated, checkDependency } from 'npm-check-git'
    ;(async () => {
      /**
       * To check 1 specific package
       */
      await checkDependency(
        //package name
        'libnpm',
    
        // *Optional* branch or commit ref (defaults to installed version)
        'latest'
      ) // true | false
    
      /**
       * To check all depdencies in your package.json
       */
      for await (const outdated of getOutdated()) {
        console.info(outdated)
      }
    })()

    Or using the CLI:

    $> npm-check-git check --package libnpm
    ✅ libnpm is up to date
    
    $> npm-check-git outdated
    libnpm is out of date
    

    Install

    npm i npm-check-git

    DownloadsWeekly Downloads

    15

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    34.9 kB

    Total Files

    47

    Last publish

    Collaborators

    • avatar