aamc

3.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i aamc

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

4.5 kB

Total Files

3

Last publish

Collaborators

  • sedenardi