Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / nvs.rb
blob6c2007d29e924fa60167cf2cb99b1cdab73c6bcb
1 cask "nvs" do
2   version "1.7.1"
3   sha256 "0df024c8c8489a63674cac148e766eab0cc2de3cd8e97c6caffd8e117a09863e"
5   url "https://github.com/jasongin/nvs/archive/refs/tags/v#{version}.tar.gz"
6   name "Node Version Switcher"
7   desc "Cross-platform tool for switching between versions and forks of Node.js"
8   homepage "https://github.com/jasongin/nvs"
10   installer script: {
11     executable: "nvs-#{version}/homebrew/install.sh",
12     args:       ["#{caskroom_path}/latest"],
13   }
15   uninstall trash: "~/.nvs"
17   # No zap stanza required
19   caveats <<~EOS
20     NVS installs all Node.js versions to ~/.nvs by default.
21     To change this behavior, remove ~/.nvs and make the
22     following modification to your shell profile:
23       export $NVS_HOME=/your/preferred/location
24   EOS
25 end