presidents
v1.1.1
Published
A data structure containing information on United States presidents.
Downloads
12
Maintainers
Readme
presidents
A data structure of United States presidents.
Usage
npm install --save presidents
var presidents = require('presidents').presidents;
presidents.forEach(function (president) {
console.log(president)
});
// {
// order: 1,
// name: 'George Washington',
// term: { startYear: 1789, endYear: 1797 },
// party: 'Federalist',
// life: { birthYear: 1732, deathYear: 1799 }
// }
// {
// order: 2,
// name: 'John Adams',
// term: { startYear: 1797, endYear: 1801 },
// party: 'Federalist',
// life: { birthYear: 1735, deathYear: 1826 }
// }
// ...