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.
node bin/lts.js -s 2017-04-01 -e 2019-04-01 -h output.html -g output.svg -p output.png
--data- The path of the input JSON file. The JSON file should be of the same format as the one in Node's LTS repo. If this option is not provided,
ltsuses its own bundled JSON file.
--start- The start date of the graph. Internally, this option is passed to
new Date(). Optional. Defaults to the current date.
--end- The end date of the graph. Internally, this option is passed to
new Date(). Optional. Defaults to one year from the current date.
--html- The location to write the HTML output file. Optional.
--svg- The location to write the SVG output file. Optional.
--png- The location to write the PNG output file. Uses
svg2pngunder the hood. Optional.
--animate- Animate the bars of the graph on load.
--excludeMaster- Exclude the
Master (unstable)bar that is ever-present at the top of the graph. Optional. Defaults to false
--projectName- Provide a project name for the graph which will be displayed on the left axis beside each version. Optional. Defaults to