update-me

1.0.2 • Public • Published

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)
})

Package Sidebar

Install

npm i update-me

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • deadarius