pubmed-query

0.1.0 • Public • Published

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)

/pubmed-query/

    Package Sidebar

    Install

    npm i pubmed-query

    Weekly Downloads

    0

    Version

    0.1.0

    License

    none

    Unpacked Size

    4.82 kB

    Total Files

    5

    Last publish

    Collaborators

    • sdawes437