INNER CODE UNIT · JavaScript

match

alohe/quicky · index.js:2683

				const match = output.match(/quicky@([\d.]+)/);
				currentVersion = match ? match[1] : packageJson.version;
			} catch {
				currentVersion = packageJson.version;
			}

			const registryVersion = execSync(
				"npm show quicky version",
				{ encoding: "utf-8" },
			).trim();

			if (currentVersion === registryVersion) {
				console.log(
					chalk.yellow(
						`Quicky CLI is already at the latest version (${currentVersion}).`,
					),
				);
				return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…