https://github.com/nodejs/lts-schedule
Generate the Node.js LTS schedule
https://github.com/nodejs/lts-schedule
node nodejs
Last synced: over 1 year ago
JSON representation
Generate the Node.js LTS schedule
- Host: GitHub
- URL: https://github.com/nodejs/lts-schedule
- Owner: nodejs
- License: apache-2.0
- Created: 2017-04-04T16:08:20.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T13:54:47.000Z (over 1 year ago)
- Last Synced: 2024-10-29T16:13:33.454Z (over 1 year ago)
- Topics: node, nodejs
- Language: JavaScript
- Size: 23.4 KB
- Stars: 27
- Watchers: 7
- Forks: 23
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lts
[](https://www.npmjs.org/package/lts)
[](https://travis-ci.org/nodejs/lts-schedule)
[](https://github.com/cjihrig/belly-button)
A command line utility that generates the Node.js LTS schedule as a graph. Accepts JSON LTS data and a date range as inputs. Writes the LTS graph as HTML, SVG, and PNG files.
## Example Usage
```
node bin/lts.js -s 2017-04-01 -e 2019-04-01 -h output.html -g output.svg -p output.png
```
## Options
- `-d`, `--data` - The path of the input JSON file. The JSON file should be of the same format as the [one in Node's Release repo](https://github.com/nodejs/Release/blob/main/schedule.json). If this option is not provided, `lts` uses its own bundled JSON file.
- `-s`, `--start` - The start date of the graph. Internally, this option is passed to `new Date()`. Optional. Defaults to the current date.
- `-e`, `--end` - The end date of the graph. Internally, this option is passed to `new Date()`. Optional. Defaults to one year from the current date.
- `-h`, `--html` - The location to write the HTML output file. Optional.
- `-g`, `--svg` - The location to write the SVG output file. Optional.
- `-p`, `--png` - The location to write the PNG output file. Uses `svg2png` under the hood. Optional.
- `-a`, `--animate` - Animate the bars of the graph on load.
- `-m`, `--excludeMain` - Exclude the `Main (unstable)` bar that is ever-present at the top of the graph. Optional. Defaults to false
- `-n`, `--projectName` - Provide a project name for the graph which will be displayed on the left axis beside each version. Optional. Defaults to `Node.js`