3.0.0 • Published 6 years ago

aamc v3.0.0

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

aamc

Download and parse AAMC schools and hospitals name and address.

Source

This module downloads and parses AAMC's Organization Directory for hospitals and schools.

Installation

npm install aamc

Usage

const aamc = require('aamc');

aamc.hospitals((err, hospitals) => {
  // array of hospital objects
});

// OR

aamc.schools({ commaSeparate: true }).then((schools) => {
  // array of school objects with address lines comma separated instead of newline
});

Sample Object

Parses

Yale School of Medicine
333 Cedar Street
Post Office Box 208055
New Haven, CT 06520-8055
UNITED STATES
Phone: (203)785-4672 (0)
Fax: (203)785-7437

to

{
  "name": "Yale School of Medicine",
  "Country": "United States",
  "City": "New Haven",
  "State": "CT",
  "ZIP": "06520-8055",
  "Address": "333 Cedar Street\nPost Office Box 208055"
}

License

MIT

3.0.0

6 years ago

2.0.0

8 years ago

1.0.0

8 years ago