Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
node-releases
Advanced tools
The node-releases npm package provides information about Node.js releases. It includes data such as version numbers, release dates, and whether a release is LTS (Long-Term Support) or not. This can be useful for developers who need to programmatically access details about Node.js versions for compatibility checks, automation, or other purposes.
Get all Node.js releases
This feature allows you to retrieve an array of all Node.js releases, each containing details like the version, date, npm version, v8 version, etc.
const nodeReleases = require('node-releases');
console.log(nodeReleases);
Find a specific Node.js release
This feature enables you to find a specific Node.js release by version number, allowing you to access detailed information about that release.
const nodeReleases = require('node-releases');
const release = nodeReleases.find(release => release.version === 'v10.0.0');
console.log(release);
Filter Node.js releases by LTS status
This feature allows you to filter Node.js releases to only include those that are marked as Long-Term Support (LTS) versions.
const nodeReleases = require('node-releases');
const ltsReleases = nodeReleases.filter(release => release.lts);
console.log(ltsReleases);
This package provides similar functionality to node-releases by offering data about Node.js versions. It includes release dates, version numbers, and more. However, it may not be as up-to-date or comprehensive as node-releases.
While not a direct alternative, nvm (Node Version Manager) allows you to manage multiple Node.js versions. It provides a way to switch between versions and download new ones, which indirectly gives you access to Node.js release information.
All data is located in data
directory.
data/raw
contains raw data nodejs.json
and iojs.json
.
data/processed
contains envs.js
with both node.js and io.js data preprocessed to be used by browserlist and other projects. Each version in this file contains only necessary info: version, release date and optionally LTS flag.
npm install --save node-releases
npm run build
This is a build script which fetches data from web, processes it and saves processed data to data/processed/envs.json
. If you want to run this steps separately you can use commands described below.
npm run fetch
This npm script will download new data to data/raw
directory. Also it'll download Node.js release schedule into release-schedule
folder.
npm run process
This script generates envs.json
file from raw data files and saves it to data/processed
directory.
FAQs
Node.js releases data
The npm package node-releases receives a total of 35,356,313 weekly downloads. As such, node-releases popularity was classified as popular.
We found that node-releases demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.