Files
Michael BiancoandGitHub 4514ee617c fix: use mise idiomatic version parsing for node (#431)
* test: make sure nvmrc and node-version are tested

* fix: remove custom parsers for nvmrc and node-version in favor of mise idiomatic parsing

* test: update snapshots

* test: removing snapshot that it doesn't look like we need anymore?

* test: update snapshot

* test: increase docker pull timeout
2026-01-16 08:55:11 -07:00

14 lines
324 B
JavaScript

const cowsay = require("cowsay");
function getYarnVersion() {
const ua = process.env.npm_config_user_agent || "";
return /\byarn\/([^\s]+)/.exec(ua)?.[1] ?? null; // e.g. "1.22.22", "3.6.1"
}
console.log("Node " + process.version);
console.log(
cowsay.say({
text: `Hello from Yarn ${getYarnVersion()}`,
})
);