Skip to content

tobiasbueschel/harvard-houses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

harvard-houses

version downloads MIT License semantic-release

Installation

This package is distributed via npm:

$ npm install --save harvard-houses

Usage

Node.js

const houses = require('harvard-houses');
const allHouses = houses.all;
const randomHouse = houses.random();
const threeRandomHouses = houses.random(3);

Response:

{
  "Kirkland": {
    "url": "http://kirkland.harvard.edu/",
    "icon": "http://static.hwpi.harvard.edu/files/styles/os_files_small/public/osl/files/kirkland-shield.png"
  }
}

Browser

<script src="https://unpkg.com/harvard-houses/dist/index.umd.min.js"></script>