0.1.0 • Published 4 years ago

pubmed-query v0.1.0

Weekly downloads
8
License
-
Repository
github
Last release
4 years ago

PubMed Query

A NodeJS Promise based wrapper for making calls the NCBI Eutils API

Getting Started

Current functionality just passes a query using the format in the url in the E-utilities API documentation (https://www.ncbi.nlm.nih.gov/books/NBK25500/). A succesful query will return an axios response object, with the value in the data key of an object containing an array of PMIDs and an array containing the query translation.

Tests

Current tests ensure an object is returned in the case of a valid search and a custom error is returned for searches that return no results (err.status = 600) or a blank query (err.status = 601)