Skip to content

Commit

Permalink
Merge pull request Homebrew#199333 from Homebrew/nrm-new
Browse files Browse the repository at this point in the history
nrm 1.4.0 (new formula)
  • Loading branch information
BrewTestBot authored Nov 28, 2024
2 parents 34033e5 + 8807ae3 commit b675c41
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,7 @@ nox
npm-check-updates
npth
nq
nrm
nrpe
ns-3
nsd
Expand Down
29 changes: 29 additions & 0 deletions Formula/n/nrm.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Nrm < Formula
desc "NPM registry manager, fast switch between different registries"
homepage "https://github.com/Pana/nrm"
url "https://registry.npmjs.org/nrm/-/nrm-1.4.0.tgz"
sha256 "b741a633d8d2d5e7ea7f8dd1d9709999926c2c8f5e80a94b8225ccb1a446a4e7"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "59b4f5f3dc63191e35344d61dec81d4bf134f4f338a48efae5979d6a2215e8fe"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "59b4f5f3dc63191e35344d61dec81d4bf134f4f338a48efae5979d6a2215e8fe"
sha256 cellar: :any_skip_relocation, arm64_ventura: "59b4f5f3dc63191e35344d61dec81d4bf134f4f338a48efae5979d6a2215e8fe"
sha256 cellar: :any_skip_relocation, sonoma: "edb0d1ea6786ae796bbd9e7b3c4e76f6209e64627f9a9c5ded2ff8ea5279dce0"
sha256 cellar: :any_skip_relocation, ventura: "edb0d1ea6786ae796bbd9e7b3c4e76f6209e64627f9a9c5ded2ff8ea5279dce0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "59b4f5f3dc63191e35344d61dec81d4bf134f4f338a48efae5979d6a2215e8fe"
end

depends_on "node"

def install
system "npm", "install", *std_npm_args
bin.install_symlink Dir["#{libexec}/bin/*"]
end

test do
assert_match "SUCCESS", shell_output("#{bin}/nrm add test http://localhost")
assert_match "test --------- http://localhost/", shell_output("#{bin}/nrm ls")
assert_match "SUCCESS", shell_output("#{bin}/nrm del test")
end
end

0 comments on commit b675c41

Please sign in to comment.