The core, online-only module of nodevu. It fetches the Node.js release index
and release schedule, then merges them into one object keyed by release line,
adding what it can work out from dates and release flags: the current phase of
each line, its newest and oldest LTS and security releases, and the files each
release ships.
npm install @nodevu/core
Then call it for the data:
const nodevu = require('@nodevu/core');const data = await nodevu();console.log(data.v20.support.codename); // 'Iron'
An ISO 8601 date to work out each release line's phase
against. A Luxon DateTime works too. Mostly useful for tests.
Default:DateTime.now() from Luxon.
Fulfills with an object that has a key per
release line, newest first, such as v22, or v0.10 for the 0.x lines. Each value is
described in Release lines.
This is the module's only export. The result is large: every release Node.js
has published, with its dependencies and files. To read it without a network
request, use @nodevu/static.
The files of each identifier, grouped by type: aix,
headers, linux, macos, source, sunos, and windows. Only the
types the release has are present. Each one is an array of the objects
@nodevu/parsefiles returns, without their type: