wits-client
v0.3.4
Published
A client for using wits.win apis
Readme
wits-client
wits-client is a TypeScript package that provides a simple and typed interface for interacting with the wits.win APIs.
Features
- Easy-to-use API client for
wits.win - Fully typed with TypeScript
- Supports both browser and Node.js environments
- Useful helpers and utilities for common API tasks
For more documentation head to WITS.
Installation
bun install wits-client
# or
npm install wits-clientUsage
import { createClientAPI, createDashboardAPI } from 'wits-client'
export const clientAPI = createClientAPI({
appId: 'APP_ID',
jwtToken: 'jwtToken'
})
// Server side only
export const serverAPI = createDashboardAPI({
appId: '',
privateKey: ''
})Development
bun install
bun devFormatting
To check code formatting:
bun format:checkTo fix formatting issues:
bun format