update-me
v1.0.2
Published
Tiny package to detect new available version of an app
Downloads
3
Maintainers
Readme
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)
})