UNPKG

appwrite-utils

Version:

`appwrite-utils` is a comprehensive TypeScript library designed to streamline the development process for Appwrite projects. Version 1.0.0 aligns with the YAML-first architecture of `appwrite-utils-cli`, providing enhanced integration capabilities and rob

10 lines (9 loc) 281 B
import { Client } from "appwrite"; export const getAppwriteClient = (endpoint, project, sessionKey) => { const client = new Client(); client.setEndpoint(endpoint).setProject(project); if (sessionKey) { client.setSession(sessionKey); } return client; };