@depot/sdk-node
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Depot API SDK for Node.js

CI npm Powered by TypeScript

A Node.js SDK for the Depot API.

👉 API Documentation

Installation

Use pnpm or your favorite package manager:

pnpm add @depot/sdk-node

Usage

Each of the Depot API services is exposed on the main depot export. Authentication is provided via an Authorization header with an Organization Token, for each API request. The service paths match their corresponding gRPC service names.

Example

List projects:

import {depot} from '@depot/sdk-node'

const headers = {
  Authorization: `Bearer ${process.env.DEPOT_TOKEN}`,
}

async function example() {
  const result = await depot.core.v1.ProjectService.listProjects({}, {headers})
  console.log(result.projects)
}

License

MIT License, see LICENSE.

Readme

Keywords

Package Sidebar

Install

npm i @depot/sdk-node

Weekly Downloads

48

Version

0.5.0

License

MIT

Unpacked Size

195 kB

Total Files

7

Last publish

Collaborators

  • jacobwgillespie
  • kylegalbraith