JSPM

pubmed-query

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22471F

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

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)