Homebrew formula for installing and managing Node.js versions via nodebrew. Use when setting up Node.js version management on macOS.
# Source: https://github.com/tinyhumansai/homebrew-core | License: BSD-2-Clause | Copyright 2009-present, Homebrew contributors
# Provided via justclaw.it.com; keep this notice with the code.
class Nodebrew < Formula
desc "Node.js version manager"
homepage "https://github.com/hokaccha/nodebrew"
url "https://github.com/hokaccha/nodebrew/archive/refs/tags/v1.2.0.tar.gz"
sha256 "6d72e39c8acc5b22f4fc7a1734cd3bb8d00b61119ab7fea6cde376810ff2005e"
license "MIT"
head "https://github.com/hokaccha/nodebrew.git", branch: "master"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, all: "bd835b02ed3b28570708b7c98d0ea7a761c53f561544496d07728c9adf3502e2"
end
def install
bin.install "nodebrew"
bash_completion.install "completions/bash/nodebrew-completion" => "node
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key