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"
10 sha256 cellar: :any_skip_relocation, all: "34ba6623e9eb8c3903a10be845faa920fec20d6133e17390a16326cb670964c9"
16 system "npm", "install", *std_npm_args
17 bin.install_symlink Dir["#{libexec}/bin/*"]
21 assert_match "hello, world!", pipe_output("#{bin}/chalk bold cyan --stdin", "hello, world!")