UNPKG

pubmed-fetch

Version:

Typescript version of Bio.Entrez; automating PubMed article and manuscript data retrivial.

20 lines (18 loc) 849 B
type PaperData = { PMID: number; title: string; slug: string; abstract: string; authors: string[]; journal: string; pubdate: Date; keywords: string[]; url: string; affiliations: string[]; }; declare function getIDsAndData(query: string, numPapers: number, api_key: string | undefined, consolelog: boolean): Promise<Array<PaperData>>; declare function fetchIDs(query: string, num: number, api_key: string | undefined, consolelog: boolean): Promise<string[]>; declare function fetchData(id_list: any, api_key: string | undefined, consolelog: boolean): Promise<any>; declare function processData(data: any): Promise<Array<PaperData>>; declare function buildQuery(authors: string[], topics: string[], dateRange: string): string; export { buildQuery, getIDsAndData as default, fetchData, fetchIDs, processData };