1.0.2 • Published 8 years ago

update-me v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

update-me

Tiny package to detect new available version of an app. Mostly designed to be used with custom cli tools.

Usage:

ES5:
var updateMe = require('update-me')

updateMe(function (err, newVersion) { // or updateMe({timeout: 2000}, function (err, newVersion) {
  if (err) {
    return
  }

  console.log('Get new version: ', newVersion)
})
ES6:
import updateMe from 'update-me'

updateMe((err, newVersion) => { // or updateMe({timeout: 2000}, function (err, newVersion) => {
  if (err) {
    return
  }

  console.log('Get new version: ', newVersion)
})