1.0.10 • Published 5 years ago

nih-client v1.0.10

Weekly downloads
10
License
MIT
Repository
github
Last release
5 years ago

API Client

npm.io npm.io

Client for the National Institutes of Health - Office of dietary Supplements API https://ods.od.nih.gov/api/.

Install

$ npm install nih-client

How to use

Just import the library and require any available Vitamin.

const nihClient = require('nih-client');

const options = {
  resourceName: 'Calcium',
  readingLevel: 'Health Professional',
};

nihClient
      .get(options)
      .then(response => {
        // do something with response.data
      })
      .catch(err => {
        done(err);
      });

Available options

  • outputFotmat: XML or HTML
  • resourceName: any resource name
  • readingLevel: Consumer, Health Professional or Datos en español
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago