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§
- Npmrc
Parser - Regular-expression-based parser for
.npmrclines.
Enums§
- Npmrc
Config Type - Recognized line configurations in
.npmrcfiles.
Functions§
- has_
registry - Whether either npm configuration contains an eligible registry definition.
- transform_
npmrc_ contents - Pure in-memory transformation of
.npmrccontents. - update_
npmrc_ configs - Updates
.npmrcconfiguration files with the given access token.