Node switcher
Switch node version based on Fast Node Manager (fnm). it grabs commands:
fnm install
fnm use
fnm default
Usage:
node-switcher $param
param:
If no number is passed, it defaults to version 16.16.0.
If 14 is passed, it uses version 14.19.0.
If 16 is passed, it uses version 16.16.0.
If another number is passed, it attempts to find the last valid Node.js version based on that number. If not found, it defaults to version 16.16.0.
Example:
node-switcher 14
node-switcher 15
node-switcher 16
node-switcher 17
node-switcher 17.8.0
node-switcher
...