https://github.com/ralphtheninja/lts-schedule
The LTS schedule in JSON. Extracted from https://github.com/nodejs/LTS
https://github.com/ralphtheninja/lts-schedule
json lts schedule
Last synced: 6 months ago
JSON representation
The LTS schedule in JSON. Extracted from https://github.com/nodejs/LTS
- Host: GitHub
- URL: https://github.com/ralphtheninja/lts-schedule
- Owner: ralphtheninja
- License: mit
- Created: 2017-09-03T20:43:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-11T10:50:38.000Z (over 3 years ago)
- Last Synced: 2024-12-27T17:39:39.639Z (6 months ago)
- Topics: json, lts, schedule
- Language: JavaScript
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lts-schedule
> The node.js LTS schedule in JSON for programmatic usage
[](https://www.npmjs.com/package/lts-schedule)

[](https://travis-ci.org/ralphtheninja/lts-schedule)
[](https://standardjs.com)## Install
```
$ npm i lts-schedule -S
```## Usage
```js
const isEOL = require('lts-schedule').isEOL
console.log(isEOL('v0.10')) // true
console.log(isEOL('v0.12')) // true
console.log(isEOL('v10')) // false
``````js
const json = require('lts-schedule').json
console.log(JSON.stringify(json.v8, null, 2))
```Yields:
```json
{
"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:
```js
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 date
* `end` (required) release end date
* `codename` (optional) code name for the release
* `lts` (optional) date when lts release begins, required for lts releases
* `maintenance` (optional) date when the maintenance period begins## License
MIT