Back to Komodo

Komodo

client/core/ts/README.md

2.1.2580 B
Original Source

Komodo

A system to build and deploy software across many servers. https://komo.do

sh
npm install komodo_client

or

sh
yarn add komodo_client
ts
import { KomodoClient, Types } from "komodo_client";

const komodo = KomodoClient("https://demo.komo.do", {
  type: "api-key",
  params: {
    key: "your_key",
    secret: "your secret",
  },
});

// Inferred as Types.StackListItem[]
const stacks = await komodo.read("ListStacks", {});

// Inferred as Types.Stack
const stack = await komodo.read("GetStack", {
  stack: stacks[0].name,
});