modelstat 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,4 +1,13 @@
1
1
  #!/usr/bin/env node
2
+ {
3
+ const [__msMaj, __msMin] = process.versions.node.split('.').map(Number);
4
+ if (__msMaj < 20 || (__msMaj === 20 && __msMin < 18)) {
5
+ process.stderr.write(`modelstat requires Node \u2265 20.18 (you have ${process.version}).\n`);
6
+ process.stderr.write('Install Node 20+: https://nodejs.org\n');
7
+ process.stderr.write('Debian/Ubuntu: curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt-get install -y nodejs\n');
8
+ process.exit(1);
9
+ }
10
+ }
2
11
  import { createRequire as __modelstatCR } from "node:module";
3
12
  const require = __modelstatCR(import.meta.url);
4
13
  var __create = Object.create;