npm.io
0.2.1 • Published yesterday

@csfetcher/client

Licence
MIT
Version
0.2.1
Deps
2
Size
886 kB
Vulns
0
Weekly
0

@csfetcher/client

TypeScript client for the CSFetcher API.

import { CsfetcherClient } from '@csfetcher/client';

const client = new CsfetcherClient({
  apiKey: process.env.CSFETCHER_API_KEY!,
  baseUrl: process.env.CSFETCHER_API_BASE_URL!,
});

const merchants = await client.merchants.find({ status: 'published' }, { limit: 25 });

The SDK validates API responses with the same Zod schemas used by the server package during development and build.