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

4.0.5 • 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

Readme

Keywords

Package Sidebar

Install

npm i npm-check-git

Weekly Downloads

6

Version

4.0.5

License

MIT

Unpacked Size

94.2 MB

Total Files

1095

Last publish

Collaborators

  • johngeorgewright