Skip to content

Commit

Permalink
Document registryFetchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Jul 16, 2021
1 parent 1f21507 commit 2c4d656
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ const config = {
// which is then used to fetch all packages.
npmRegistry: "https://registry.npmjs.org/",

// Optional, defaults to {}.
// When provided, this allows you to configure the behavior of npm-registry-fetch,
// such as providing username, password, or token to access private npm packages.
// See https://github.com/npm/npm-registry-fetch#-fetch-options for documentation
registryFetchOptions: {
username: "test",
password: "test",
token: "test",
},

// Optional, defaults to "debug". Must be one of "debug", "warn", or "fatal"
// This changes the verbosity of the stdout logging
logLevel: "warn",
Expand Down

0 comments on commit 2c4d656

Please sign in to comment.