# @paystack-js/rest

> A simple Paystack SDK for Node.js

Latest version **0.0.3** (published 2023-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @paystack-js/rest
pnpm add @paystack-js/rest
yarn add @paystack-js/rest
bun add @paystack-js/rest
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2023-08-18 |
| First published | 2023-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 62.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Obi Fortune |
| Maintainers | ickynavigator |

## Links

- npm: https://www.npmjs.com/package/@paystack-js/rest
- Repository: https://github.com/ickynavigator/paystack-js
- Homepage: https://github.com/ickynavigator/paystack-js#readme
- Issues: https://github.com/ickynavigator/paystack-js/issues
- npm.io page: https://npm.io/package/@paystack-js/rest

## Recent versions

- 0.0.3 (latest) — 2023-08-18
- 0.0.2 — 2023-08-16
- 0.0.1 — 2023-08-16

## README

# Mantine Hooks

[![npm](https://img.shields.io/npm/dm/@paystack-js/rest)](https://www.npmjs.com/package/@paystack-js/rest)

A simple Paystack SDK for Node.js

## Installation

```bash
# With yarn
yarn add @paystack-js/rest

# With npm
npm install @paystack-js/rest
```

### Usage

```ts
import Paystack from '@paystack/rest';

// initialize with either the token or an object containing the config
const p1 = new Paystack('sk_test_1234567890');
const p2 = new Paystack({
  token: 'sk_test_1234567890',
});

// await the result
const res = await p1.miscellaneous.listBanks();

p1.applePay.listDomains({
  query: { use_cursor: true },
});
p1.applePay.registerDomain({
  body: { domainName: 'example.com' },
});
p1.subAccounts.fetchSubaccount({
  params: { id_or_code: '1234567890' },
});
p1.subAccounts.updateSubaccount({
  params: { id_or_code: '1234567890' },
  body: { active: false },
});
```

## License

MIT

---
_Source: https://npm.io/package/@paystack-js/rest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
