Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
Last active January 8, 2018 22:27
Show Gist options
  • Save wingrunr21/cf1419dacede357d5adb6a382364694e to your computer and use it in GitHub Desktop.
Save wingrunr21/cf1419dacede357d5adb6a382364694e to your computer and use it in GitHub Desktop.
Unofficial chnode Homebrew (brew) formula
class Chnode < Formula
desc "Change between installed Node versions in your current shell."
homepage "https://github.com/steakknife/chnode"
url "https://github.com/steakknife/chnode/archive/v1.2.3.tar.gz"
sha256 "ae0bd1d9227ef76286d19331f9a3c5fcc1926e70f4ef0d3896a8f9f7b463c792"
head "https://github.com/steakknife/chnode.git"
def install
bin.install "chnode", "chnode-auto", "chnode-exec"
doc.install "README.md", "LICENSE", "CHANGELOG.md"
end
test do
system "chnode-exec", "system", "--", "node", "-v"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment