Socket
Book a DemoInstallSign in
Socket

hubdated

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hubdated

List outdated git dependencies in your private GitHub repos

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

hubdated

List outdated git dependencies in your private GitHub repos.

Tag your commits with #vMAJOR.MINOR.PATCH and this will use the semver module to find dated dependencies.

Usage

Pass a Github API token and organisation name:

$ TOKEN=xxx hubdated ORG [FILTER]

Example:

$ TOKEN=xxx hubdated test123xyzlkj

# test123xyzlkj/dependant

## minor

- [ ] dependency: v1.1.1 ~> v1.2.0

$ echo $?
1

The output is formatted as Markdown, so it can be used to easily create a GitHub issue:

screenshot

Pass the optional FILTER argument to perfom fuzzy matching on the dependencies to check:

$ hubdated test123xyzlkj express,lodash

For repeated use, you can also store your token in ~/.hubdated:

$ echo xxx > ~/.hubdated
$ hubdated ORG

Installation

$ npm install -g hubdated

API

const hubdated = require('hubdated')

hubdated({
  token,
  org,
  filter = [],
  each: ({ repo, deps }) => {
    for (const dep of deps) {
      slack(`${repo} uses an out of date version of ${dep.repo}. ${dep.from} vs ${dep.to}`)
    }
  }
})
  .then(code => process.exit(code))
  .catch(err => {
    console.error(err)
    process.exit(1)
  })

License

MIT

FAQs

Package last updated on 14 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts