aamc
v3.0.0
Published
Download and parse AAMC schools and hospitals name and address.
Downloads
2
Readme
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