Skip to content
Myr

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 file

Take it

Runs CI tests on Node 23 (#1169)ehmickybefore adoptione330bd8

lines 1–2why, one step back
1import {version} from 'node:process';
2

Require Node.js 22 (#1243)Sindre Sorhusbefore adoption04b4454

line 3why, one step back
3export const majorNodeVersion = Number(version.split('.', 1)[0].slice(1));