RepoPilot

nvm-sh / nvm

Search nvm-sh/nvm

GitHub

Code

How nvm-sh/nvm is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Suggested starting pointAI
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI

Find files for a task

AI

Add a new nvm command

  • Implement the command logic as a shell function in the main nvm function switch statement
  • Add bash completion rules for the new command
  • Update README.md with command documentation and usage examples

Add support for a new shell environment

  • Extend nvm.sh to detect and initialize the new shell in the main initialization logic
  • Add profile configuration logic to install.sh to update the shell's configuration file
  • Update Makefile to run tests against the new shell variant

Add platform-specific version installation handling

  • Implement platform detection and binary/source selection logic in nvm.sh's version installation functions
  • Add mock binaries for the new platform in test/mocks (e.g., uname output, pkg-config data)
  • Add GitHub Actions workflow matrix entries for CI/CD testing on the new platform

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • No public API or start-up file could be picked out from the file names.

Code quality and hotspots

Largest source files

  • Branch points1 per file on average
  • Code issues0 errors, 1 warning
  • Largest file3 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions17 workflows
  • Tests415 test files
  • Dependency updatesCodeQL

Test folders: test/fast/Aliases · test/fast/Aliases/circular · test/fast/Aliases/lts

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.