Skip to content

Conversation

@MaxBlack-dev
Copy link
Contributor

Description

Standardizes all environment variable references in documentation to use uppercase naming convention (NPM_CONFIG_) instead of lowercase (npm_config_).

Changes

  • Changed npm_config_binroot to NPM_CONFIG_BINROOT in scripts.md
  • Changed npm_config_prefix to NPM_CONFIG_PREFIX in npm.md (2 instances)
  • Changed npm_config_ to NPM_CONFIG_ in npm.md
  • Changed npm_config_key to NPM_CONFIG_KEY in npm.md

Fixes

Closes #4891

Rationale

The documentation had inconsistent casing for environment variables - some references used uppercase (NPM_CONFIG_USERCONFIG) while others used lowercase (npm_config_prefix). Following the standard convention, environment variables should always be referenced in uppercase. While npm internally converts both to lowercase, using uppercase in documentation follows the de-facto standard and avoids confusion.

Type of Change

Documentation update

@MaxBlack-dev MaxBlack-dev requested a review from a team as a code owner November 19, 2025 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS] npm_config_userconfig vs NPM_CONFIG_USERCONFIG when referred as environment variable

1 participant