@krane/common
TypeScript icon, indicating that this package has built-in type declarations

0.5.96 • Public • Published

Common modules written in Typescript to interface with Krane

npm version

Install

npm i @krane/common

Examples

import { KraneClient } from "@krane/common";

// Create an authenticated client to interface with a Krane instance
const client = new KraneClient("https://krane.example.com", "Bearer ...");

// Get all deployments
const deployments = client.getDeployments();

// Restart all deployments
for (const deployment of deployments) {
  await client.restartDeployment(deployment.name)
}

Readme

Keywords

none

Package Sidebar

Install

npm i @krane/common

Homepage

krane.sh

Weekly Downloads

1

Version

0.5.96

License

none

Unpacked Size

33.5 kB

Total Files

28

Last publish

Collaborators

  • davidcastaneda