π ungh.cc API client for JavaScript
import { Ungh } from "@jcbhmr/ungh";
const ungh = new Ungh({
userAgent: "awesomeapp",
});
const { data } = await ungh.rest.repos.getLatestRelease({
owner: "nodejs",
repo: "node",
});
console.log("The latest version of Node.js is %s.", data.tag_name); |
π€ Small. Only ~3 KiB.
π¦ TypeScript types for return values
π octokit-ish API
npm install @jcbhmr/unghimport { Octokit } from "octokit";
import { Ungh } from "@jcbhmr/ungh";
const octokit = new Octokit({ auth: "<github_pat>" });
const { data } = await octokit.rest.repos.get({ owner: "nodejs", repo: "node" });
console.log(data); // More data. Full GitHub API response.
const ungh = new Ungh();
const { data } = await ungh.rest.repos.get({ owner: "nodejs", repo: "node" });
console.log(data); // Less data. Trimmed & cached GitHub API response.Get started using Vite+.
Setup command
vp installTest command
vp testBuild command
vp pack