Node Timeline
Node Timeline is a historically related node module full of random 21st century data that you may find useful. (2000 - Present)
Installation
This is a Node.js module available through the npm registry.
Before installing nodetimeline
, download and install Node.js
Installation is accomplished using the npm install command:
$ npm i nodetimeline --save
Usage
First, of all make sure to include nodetimeline
in your JavaScript File.
var t = ;
Node Timeline is a very simple package to use. Every function has a year input, and returns either a string or number.
Functions
Politics (United States)
firstLady(year)
president(year)
let president = t;console; // "George W. Bush" // For a president's name between elections, add 0.1 or 0.2 to the election year let president = t;console; // "Barack Obama" let president = t;console; // "Donald Trump" // Requesting a first lady's name also works the same way let firstLady = t; // "Melania Trump"
Sports
nbaChampion(year)
nflChampion(year)
nhlChampion(year)
mlbChampion(year)
let nbaChampion = t;console; // "Golden State Warriors" let nflChampion = t;console; // "The New England Patriots" let nhlChampion = t;console; // "The Pittsburgh Penguins" let mlbChampion = t;console; // "The Houston Astros"