Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This repository is managed by the Package Maintenance Working Group, see Governance.
$ npm i @pkgjs/nv
const nv = require('@pkgjs/nv')
(async () => {
const versions = await nv('lts')
console.log(versions)
/*
[
{
"version": "18.18.2",
"major": 18,
"minor": 18,
"patch": 2,
"tag": "",
"codename": "hydrogen",
"versionName": "v18",
"start": "2022-04-19T00:00:00.000Z",
"lts": "2022-10-25T00:00:00.000Z",
"maintenance": "2023-10-18T00:00:00.000Z",
"end": "2025-04-30T00:00:00.000Z",
"releaseDate": "2023-10-13T00:00:00.000Z",
"isLts": true,
"files": [
"aix-ppc64",
"headers",
"linux-arm64",
"linux-armv7l",
"linux-ppc64le",
"linux-s390x",
"linux-x64",
"osx-arm64-tar",
"osx-x64-pkg",
"osx-x64-tar",
"src",
"win-x64-7z",
"win-x64-exe",
"win-x64-msi",
"win-x64-zip",
"win-x86-7z",
"win-x86-exe",
"win-x86-msi",
"win-x86-zip"
],
"dependencies": {
"npm": "9.8.1",
"v8": "10.2.154.26",
"uv": "1.44.2",
"zlib": "1.2.13.1-motley",
"openssl": "3.0.10+quic"
}
}
]
*/
})()
You can also pass an array of aliases and the resulting array will be sorted and de-duped, for example:
const versions = await nv(['lts', 'supported'])
console.log(versions.map((v) => v.version))
/*
[ '8.16.1', '10.16.3', '12.11.0' ]
*/
Support Aliases
For now referenced here until we have a more official doc: https://github.com/nodejs/package-maintenance/issues/236#issue-474783582
all
: All node versionslts_active
: Head of LTS and Active major version lineslts
: Head of current LTS linesactive
: The newest version in the active but not maintenance mode lineslts_latest
/lts/*
: Latest of the LTS lines (lts/*
for nvm compatibility)supported
: Head of all maintained linesmaintained
: Head of all maintained linescurrent
/node
: Newest of all maintained lines (node
for nvm compatibility)Version Aliases
v6
, v8
, v10
, v12
, etc: Head of major version line by version numberdubnium
, carbon
: Named alias for LTS linesFAQs
A tool for resolving node versions from common aliases
The npm package @pkgjs/nv receives a total of 28,218 weekly downloads. As such, @pkgjs/nv popularity was classified as popular.
We found that @pkgjs/nv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.