@userhub/sdk

0.6.1 • Public • Published

UserHub JavaScript SDK

npm Latest Version JSR Latest Version

The official UserHub JavaScript SDK.

Stability: alpha

Requirements

  • Node 18 or later
  • Deno 1.28 or later
  • Bun 1 or later

Getting Started

Install SDK

npm install @userhub/sdk

Example

import { AdminApi } from "@userhub/sdk";

const adminApi = new AdminApi("sk_123");

const res = await adminApi.users.list({ pageSize: 5 });

for (const user of res.users) {
  console.log(user.id, user.displayName);
}

See the examples directory for more examples.

Readme

Keywords

Package Sidebar

Install

npm i @userhub/sdk

Weekly Downloads

50

Version

0.6.1

License

MIT

Unpacked Size

390 kB

Total Files

7

Last publish

Collaborators

  • userhub-bot
  • silas