3 views

nvm-sh/nvm

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions.

Shell★ 96,175+237 that day#6 on trending

Analyzed November 19, 2026 at ad42d90 (master) with jscpd v5 in 1.0s.

C66.4/100
Project health28,052 lines of code (M)
Duplication67
5.1% in bash, makefile, docker
Dead coden/a
the languages dead code reads are under 5% of the code
Complexity66
30.5%

The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.

9.89%duplicated over all files · 3,623 of 36,643 lines
147clones
469files scanned

Only 9 of the files count as code, too few for a code-only percentage; the numbers above cover every file.

Largest clones in the code

  • 25 lines in 2 placesbash122 tokens
    129# Emulate curl with wget
    130local NVM_DOWNLOAD_WGET_COUNT
    131NVM_DOWNLOAD_WGET_COUNT=$#
    132local NVM_DOWNLOAD_WGET_SKIP
    133NVM_DOWNLOAD_WGET_SKIP=0
    134local NVM_DOWNLOAD_WGET_ARG
    135for NVM_DOWNLOAD_WGET_ARG in "$@"; do
    136  if [ "${NVM_DOWNLOAD_WGET_SKIP}" = '1' ]; then
    137    NVM_DOWNLOAD_WGET_SKIP=0
    138    continue
    

    First 10 of 25 lines.

  • 29 lines in 2 placesbash98 tokens
    6537NVM_NO_COLORS=''
    6538local NVM_MIN_VERSION
    6539NVM_MIN_VERSION="${NVM_MIN-}"
    6540local NVM_MIN_SOURCE
    6541NVM_MIN_SOURCE='$NVM_MIN'
    6542
    6543while [ $# -gt 0 ]; do
    6544  case "${1-}" in
    6545    --) ;;
    6546    --lts)
    
    6974PATTERN=''
    6975local NVM_MIN_VERSION
    6976NVM_MIN_VERSION="${NVM_MIN-}"
    6977local NVM_MIN_SOURCE
    6978NVM_MIN_SOURCE='$NVM_MIN'
    6979while [ $# -gt 0 ]; do
    6980  case "${1-}" in
    6981    --) ;;
    6982    --lts)
    6983      NVM_LTS='*'
    

    First 10 of 29 lines, the second copy on the right.

  • 20 lines in 2 placesbash75 tokens
    6290    ;;
    6291    *)
    6292      if [ -n "$1" ]; then
    6293        break
    6294      else
    6295        shift
    6296      fi
    6297    ;; # stop processing arguments
    6298  esac
    6299done
    

    First 10 of 20 lines.

6 more
Largest clones over all files, tests and data included
By format, code only
FormatFilesLinesClonesDuplicated linesDuplication
bash98,49991451.71%
By format, all files
FormatFilesLinesClonesDuplicated linesDuplication
bash42028,075911,4245.07%
txt113,726331,87650.35%
yaml171,9752231315.85%
markdown122,4501100.41%
docker2136000%
makefile2123000%
text370000%
json153000%
editorconfig135000%

Trending appearances

DayRankStarsFilesLinesClonesAll filesCodeHealthCommit
Nov 19, 2026#696,175 (+237)46936,6431479.89%—C 66.4ad42d90
Nov 13, 2026#396,047 (+63)45735,17614310.1%—C 66.509e620c
Oct 15, 2026#395,494 (+52)39128,67410310.26%—B 70.4b1b3a00
Sep 6, 2026#1094,944 (+22)37026,2809810.84%——ccb49e5

Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.