This is the core module used by the npmupdater cli.
Do it the normal way way:
npm install npmupdater
This module uses the credentials of the npm user logged in on the command line.
Use it like this:
var updater = require('npmupdater')
updater('my-module-name', function(err, result) {
// handle err and result
})
The result
is an object with the property push
that is either true
(if the
module was pushed to npm) or false
(if it's not been pushed), and the property
version
, which is the version on npm or github, whichever is greater.