New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

check-update-github

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-update-github

Check if there are a update

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
45
40.63%
Maintainers
1
Weekly downloads
 
Created
Source

check-update-github

Check if there are a update on github repository.

Build Status NPM version

npm install --save check-update-github

Example

var checkUpdate = require('check-update-github');
var pkg = require('./package.json');

checkUpdate({
    name: pkg.name, 
    currentVersion: pkg.version, 
    user: 'your-github-accound',
    branch: 'master'
    }, function(err, latestVersion, defaultMessage){
    if(!err){
        console.log(defaultMessage);
    }
});

Options

name

Required
Type: string

Define the package name for search in Github.

currentVersion

Required if you want a default message
Type: string

Define the version currently installed.

user

Required
Type: string

Define the github acount for search in Github.

branch

Type: string Default: master

Define the git branch for search in Github.

Keywords

check

FAQs

Package last updated on 11 Apr 2016

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