presidents
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

// ...

/presidents/

    Package Sidebar

    Install

    npm i presidents

    Weekly Downloads

    9

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    13.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • nickardson