nodevu is a Node.js version utility: it collects, merges, and reasons about Node.js versions in a way that's developer friendly. It's a set of small modules, so you install only the ones you need.
npm install @nodevu/core
Then ask it about any release line:
const nodevu = require('@nodevu/core'); const data = await nodevu(); console.log(data.v20.support.lts.newest);
@nodevu/core: the online-only core. It fetches the version information Node.js publishes and merges it into one object, adding what it can work out from dates and release flags.@nodevu/static: the offline version of core. It ships core's data, and a few subsets of it, as JSON that's updated on a schedule.
@nodevu/oldest: the oldest LTS or security release of a release line.@nodevu/newest: the newest LTS or security release of a release line.@nodevu/ranges: ranges of Node.js versions, such as every release of the active LTS lines.@nodevu/aliases: the names of those ranges.@nodevu/translate: translates the terms the Node.js project proposed for thesupportproperty inpackage.jsonto aliases.
@nodevu/parsefiles: parses thefilesidentifiers of a release in the Node.js release index into file names.@nodevu/opt: builds the options@nodevu/coretakes, with their defaults.@nodevu/fetchindex: fetches the Node.js release index.