lts-schedule
v2.3.0
Published
The LTS schedule in JSON. Extracted from https://github.com/nodejs/LTS
Downloads
100
Readme
lts-schedule
The node.js LTS schedule in JSON for programmatic usage
Install
$ npm i lts-schedule -S
Usage
const isEOL = require('lts-schedule').isEOL
console.log(isEOL('v0.10')) // true
console.log(isEOL('v0.12')) // true
console.log(isEOL('v10')) // false
const json = require('lts-schedule').json
console.log(JSON.stringify(json.v8, null, 2))
Yields:
{
"start": "2017-05-30",
"lts": "2017-10-31",
"maintenance": "2019-04-01",
"end": "2019-12-31",
"codename": "Carbon"
}
Api
const schedule = require('lts-schedule')
Returns an object with the properties listed below.
schedule.isEOL(version)
A function that returns true
if version
has reached End of Life (EOL), otherwise false
.
version
can be a string or a Number
.
The following calls are equivalent:
isEOL(4)
isEOL('4')
isEOL('v4')
isEOL('v4.8.7')
schedule.json
An object with node.js versions as keys. Each release object has the following properties:
start
(required) release start dateend
(required) release end datecodename
(optional) code name for the releaselts
(optional) date when lts release begins, required for lts releasesmaintenance
(optional) date when the maintenance period begins
License
MIT