UNPKG

poku

Version:

🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.

13 lines (12 loc) 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runtimeVersion = void 0; const node_process_1 = require("process"); const poku_js_1 = require("../configs/poku.js"); exports.runtimeVersion = (() => { if (poku_js_1.GLOBAL.runtime === 'bun') return Number(Bun.version.split('.')[0]); if (poku_js_1.GLOBAL.runtime === 'deno') return Number(Deno.version.deno.split('.')[0]); return Number(node_process_1.version.replace('v', '').split('.')[0]); })();