2.4.0 • Published 3 years ago

@ima-worldhealth/odk-central-api-cjs v2.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

ODK Central API

This repository contains a NodeJS wrapper for the ODK Central API. It is an ECMAScript module and requires a NodeJS version that supports ESM.

Download

yarn add @ima-worldhealth/odk-central-api

Usage

By default, the module uses three environmental variables defined in the .env.sample file. When using this module, ensure those environmental variables are set using something like dotenv.

import { api, auth } from '@ima-worldhealth/odk-central-api';

(async () => {
  const projects = await api.getProjects();
	console.log(projects);  // => [{ /* projects.. */ }]
});

This library is MIT licensed. It is used for IMA World Health's internal projects. Feel free to fork, copy, and adapt as needed. Issues and Pull Requests are welcome!

2.4.0

3 years ago

2.3.4

3 years ago

2.3.5

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago