Skip to content

Nickardson/presidents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }
// }

// ...

About

A data structure of United States presidents.

Resources

License

Stars

Watchers

Forks

Packages

No packages published