@userhub/sdk

0.6.4 • 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

69

Version

0.6.4

License

MIT

Unpacked Size

391 kB

Total Files

7

Last publish

Collaborators

  • userhub-bot
  • silas