Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including npmupdater-cli with all npm packages installed. Try it out:

var npmupdaterCli = require("npmupdater-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

npmupdater-cli v0.0.11

The command line version of npmupdater.

npmupdater-cli Build Status

logo thingy

The command line version of the npmupdater module.

install

Install the normal way:

npm install -g npmupdater-cli

using

You'll need to be logged in to npm from the command line. (Do this by running the command npm login.)

update one module

To update a single module, run npmupdater MODULE, e.g. for my-sweet-module, run the following:

npmupdater my-sweet-module

update all modules

To update all modules owned by your logged in user:

npmupdater --all

github rate limits

Because the updater checks with Github, and Github rate-limits to 60 requests per hour for unauthenticated requests, you might find it handy to use authentication to remove the rate limit.

The npmupdater uses the github module, which uses one of the following three auth objects:

// basic login
{
    type: "basic",
    username: username,
    password: password
}
// oauth2
{
    type: "oauth",
    token: token
}
// oauth2 key/secret
{
    type: "oauth",
    key: "clientID",
    secret: "clientSecret"
}

To use one of these, pass in a JSON filename as one of the parameters when you use npmupdater. E.g., either one of these will work:

npmupdater --all file.json
npmupdater my-module file.json
npmupdater file.json my-module

(Remember that if the path to the JSON file has spaces, it needs to be escaped or quoted.)

The JSON object needs to be one of the above three objects.

license

VOL

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free