@vibedrop/sdk
v0.2.0
Published
HTTP client SDK for VibeDrop API.
Downloads
596
Readme
@vibedrop/sdk
HTTP client SDK for the VibeDrop API.
import { VibedropClient, loadConfig, packDir } from "@vibedrop/sdk";
const cfg = await loadConfig();
const client = new VibedropClient(cfg);
if (!cfg.apiKey) {
cfg.apiKey = await client.createAnonKey();
}
const zip = await packDir("./dist");
const site = await client.deploy(zip);
console.log(site.url); // https://abc123.vibedrop.siteSee vibedrop.cc for details.
