Function: npmRegistry()
npmRegistry(
cwd?,options?):UrlBuilderImpl|undefined
The active npm registry (npm config get registry) as a chainable
net.UrlBuilder, or undefined when npm is absent or prints no URL.
A blank, null, omitted, or explicitly current cwd reuses the cached npm
command; another resolved directory executes it directly. Environment options
are evaluated on every call.
Parameters
Section titled “Parameters”string | null
options?
Section titled “options?”envVars?
Section titled “envVars?”boolean
overrideOnly?
Section titled “overrideOnly?”boolean
Returns
Section titled “Returns”UrlBuilderImpl | undefined