Package Exports
- pubmed-query
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pubmed-query) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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)