# # ~~~ nushell node version manager # # # ~~~ imports use "src/bootstrap.nu" * use "src/versions.nu" * # # ~~~ main command # The Node Version Manager export def "nunvm" []: nothing -> nothing { help nunvm } # # ~~~ list node versions # List versions of NodeJS export def "nunvm list" [ --local # List locally-installed versions of NodeJS ]: nothing -> list { bootstrap if ($local) { versions list --local | sort -r } else { versions list | sort -r } }