node-version.js
This file
Path
test/helpers/node-version.js
3 lines · 114 bytes · JavaScript
Last changed by
Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454
History of this fileTake it
Runs CI tests on Node 23 (#1169)ehmickybefore adoptione330bd8
lines 1–2why, one step back1import {version} from 'node:process';2Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454
line 3why, one step back3export const majorNodeVersion = Number(version.split('.', 1)[0].slice(1));