Arnesfield / node-

Script to always use the latest available Node version.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-

Script to always use the latest available Node version.

Note: This only runs the latest available Node binary and does not apply any changes like what nvm use does.

Install

  1. Download node- script:

    wget github.com/Arnesfield/node-/raw/main/node-
  2. Allow executable permissions:

    chmod +x ./node-
  3. You can place the script in a directory that is included in your $PATH environment variable.

Usage

Use similarly to node.

Example with v12.14.0 as default Node version with v18.17.1 also installed.

$ node -v
v12.14.0

$ node- -v
v18.17.1

License

Licensed under the MIT License.

About

Script to always use the latest available Node version.

License:MIT License


Languages

Language:Shell 100.0%