sc4
Version:
A command line utility for automating SimCity 4 modding tasks & modifying savegames
8 lines (7 loc) • 324 B
JavaScript
// # version-check.js
// Checks the Node.js version and asks users to upgrade.
import semver from 'semver';
if (!semver.satisfies(process.version, '>=12.20')) {
console.log(`Please upgrade your Node.js version. You can do this on https://nodejs.org. Your current version is ${process.version}.`);
process.exit(1);
}