Skip to main content

Module npmrc

Module npmrc 

Source
Expand description

.npmrc configuration parsing, formatting, and transformation.

Handles scoped and unscoped Artifact Registry repository definitions, _authToken credential lines, legacy basic auth password and username cleanup, and comment/formatting preservation.

Structs§

NpmrcParser
Regular-expression-based parser for .npmrc lines.

Enums§

NpmrcConfigType
Recognized line configurations in .npmrc files.

Functions§

has_registry
Whether either npm configuration contains an eligible registry definition.
transform_npmrc_contents
Pure in-memory transformation of .npmrc contents.
update_npmrc_configs
Updates .npmrc configuration files with the given access token.