@addresszen/sdk
v0.1.1
Published
Fetch-based, tree-shakeable TypeScript SDK for api.addresszen.com
Maintainers
Readme
AddressZen TypeScript SDK
Typed API calls over native fetch for browsers and Node.js 22 or later.
pnpm add @addresszen/sdkimport { createZenClient, findAddress } from "@addresszen/sdk";
const client = createZenClient({ apiKey: "ak_test" });
const { data } = await findAddress({
client,
query: { query: "123 Main St" },
});
console.log(data.result.hits);HTTP errors throw ApiError, with the HTTP status and the API's error code and message. Pass throwOnError: false to receive { data, error } instead.
Documentation covers authentication, errors, autocomplete and optional React/Preact adapters. Named ESM imports support tree-shaking.
License
SEE LICENSE IN LICENSE
