https://github.com/darkobits/node-versions
Get the current "latest" and "LTS" versions of Node JS.
https://github.com/darkobits/node-versions
api latest lts node versions
Last synced: 2 months ago
JSON representation
Get the current "latest" and "LTS" versions of Node JS.
- Host: GitHub
- URL: https://github.com/darkobits/node-versions
- Owner: darkobits
- License: wtfpl
- Created: 2019-04-23T07:09:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-28T16:13:19.000Z (3 months ago)
- Last Synced: 2025-04-14T09:12:47.294Z (2 months ago)
- Topics: api, latest, lts, node, versions
- Language: TypeScript
- Homepage:
- Size: 2.01 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Install
This package is available as a CLI and as a Node API. If only using the Node API, you should install it
locally in your project:```
npm i @darkobits/node-versions
```If using the CLI, it may be preferable to install it globally:
```
npm i -g @darkobits/node-versions
```## Use
### Node API
This package exports an [async function](https://ponyfoo.com/articles/understanding-javascript-async-await)
that returns a JSON object with 2 keys, `latest` and `lts`, each with the
following sub-keys:```ts
interface VersionDescriptor {
/**
* Full semver version. (ex: '10.14.1')
*/
full: string;/**
* Major version number. (ex: 10)
*/
major?: number;/**
* Minor version number. (ex: 14)
*/
minor?: number;/**
* Patch version number. (ex: 1)
*/
patch?: number;
}interface NodeReleaseDescriptor {
/**
* Release date.
*/
date: string;/**
* Release version.
*/
version: VersionDescriptor;/**
* NPM version included in the release.
*/
npm: VersionDescriptor;/**
* V8 version included in the release.
*/
v8: VersionDescriptor;/**
* libuv version included in the release.
*/
uv: VersionDescriptor;/**
* zlib version included in the release.
*/
zlib: VersionDescriptor;/**
* OpenSSL version included in the release.
*/
openssl: VersionDescriptor;
}
```### CLI
```
> node-versions
Latest: 11.14.0
LTS: 10.15.3
```You may also use `-o json` or `--output json` to have `node-versions` output
JSON.