### Hierarchy

- NpmRegistryUtils

## Index

### Methods

- buildRegistryInfo
- buildRegistryNpmArgs
- getRegistry
- getScopeRegistry
- npmLogin

## Methods

### Static buildRegistryInfo

- buildRegistryInfo(packageInfo: string | IPluginJsonObject, userRegistry?: string): INpmRegistryInfo

- - Defined in @zowe/imperative/src/imperative/src/plugins/utilities/NpmFunctions.ts:150

  Get package location and npm registry args for installing it.

  #### Parameters

  - ##### packageInfo: string | IPluginJsonObject

    Plugin name or object from plugins.json

  - ##### Optional userRegistry: string

    Registry override specified on the command line

  #### Returns INpmRegistryInfo

  Location info for npm package to be installed

### Static Private buildRegistryNpmArgs

- buildRegistryNpmArgs(registryUrl: string, scope?: string): Partial<INpmInstallArgs>

- - Defined in @zowe/imperative/src/imperative/src/plugins/utilities/NpmFunctions.ts:176

  #### Parameters

  - ##### registryUrl: string

  - ##### Optional scope: string

  #### Returns Partial<INpmInstallArgs>

### Static getRegistry

- getRegistry(userRegistry?: string): string

- - Defined in @zowe/imperative/src/imperative/src/plugins/utilities/NpmFunctions.ts:122

  Get the registry to install to.

  #### Parameters

  - ##### Optional userRegistry: string

    Registry override specified on the command line

  #### Returns string

### Static Private getScopeRegistry

- getScopeRegistry(scope: string): string | undefined

- - Defined in @zowe/imperative/src/imperative/src/plugins/utilities/NpmFunctions.ts:184

  #### Parameters

  - ##### scope: string

  #### Returns string | undefined

### Static npmLogin

- npmLogin(registry: string): void

- - Defined in @zowe/imperative/src/imperative/src/plugins/utilities/NpmFunctions.ts:132

  NPM login to be able to install from secure registry

  #### Parameters

  - ##### registry: string

    The npm registry to install from.

  #### Returns void

Generated using TypeDoc