poku
Version:
🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.
9 lines (8 loc) • 378 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.availableParallelism = void 0;
const node_os_1 = require("os");
const availableParallelism = () => typeof node_os_1.availableParallelism === 'function'
? (0, node_os_1.availableParallelism)()
: ((0, node_os_1.cpus)()?.length ?? 0);
exports.availableParallelism = availableParallelism;