jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / c / chalk-cli.rb
blobdf679eb2d5f294d6218bd2cb1d3d04cfbd5e89ea
1 class ChalkCli < Formula
2   desc "Terminal string styling done right"
3   homepage "https://github.com/chalk/chalk-cli"
4   url "https://registry.npmjs.org/chalk-cli/-/chalk-cli-5.0.1.tgz"
5   sha256 "17befe5108e2fd64661305b4f1d7378dfdb2f34ae4e1bba6d895ff427b7b4286"
6   license "MIT"
8   bottle do
9     rebuild 2
10     sha256 cellar: :any_skip_relocation, all: "34ba6623e9eb8c3903a10be845faa920fec20d6133e17390a16326cb670964c9"
11   end
13   depends_on "node"
15   def install
16     system "npm", "install", *std_npm_args
17     bin.install_symlink Dir["#{libexec}/bin/*"]
18   end
20   test do
21     assert_match "hello, world!", pipe_output("#{bin}/chalk bold cyan --stdin", "hello, world!")
22   end
23 end