Skip to Content
SDKsTypeScriptInstallation

Installation

npm install sendafrica

Requires Node.js 18 or newer (the global fetch API must be available). Both module systems ship with bundled type declarations:

// ESM import { SendAfricaClient } from 'sendafrica' // CommonJS const { SendAfricaClient } = require('sendafrica')

On Node < 18, pass a fetch implementation (e.g. from node-fetch) via the fetch config option; otherwise the constructor throws.

Last updated on