0.0.7 • Published 9 months ago

@adisuper94/nih-reporter v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

WIP: nih-reporter

A TypeScript/JavaScript wrapper to call NIH reporter API

Installation

Deno

deno add @jsr:@adisuper94/nih-reporter

Node

npm install @adisuper94/nih-reporter

Basic Usage

import { NIHProjectQuery } from "@adisuper94/nih-reporter";

const nihPersonIds: number[] = [12345679, 12345678];
let query = new NIHProjectQuery();
query.setPIProfileIds(nihPersonIds).setLimit(100).setFiscalYears([2020, 2021, 2022, 2023, 2024, 2025]);
const iter = query.safeIterator();
for await (const [project, err] of iter) {
  if (err) {
    // Handle error
    console.error(err);
    continue;
  }
}
0.0.7

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago

1.0.0

9 months ago