@nodevu/oldest
v0.1.0
Published
a module that returns the oldest lts or security release of the release line passed.
Downloads
5
Readme
@nodevu/oldest
A module that returns oldest LTS or Security release of a given Node.js release line.
Usage
const { oldest } = require('@nodevu/oldest')
const oldestLts = oldest('v16', 'lts')
const oldestSecurity = oldest('v16', 'security')
const { lts, security } = require('@nodevu/oldest')
const oldestLts = oldest('v16', 'lts')
const oldestSecurity = oldest('v16', 'security')
API
This module exports three functions:
oldest(name, type)
name
(string): Node.js release line name. Examples:v16
,v11
,v8
,v0.10
.type
(string):lts
orsecurity
.
lts(name)
name
(string): Node.js release line name. Examples:v16
,v11
,v8
,v0.10
.
security(name)
name
(string): Node.js release line name. Examples:v16
,v11
,v8
,v0.10
.