Skip to content

Latest commit

Β 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ungh.cc client

πŸ™ 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

Installation

npm pnpm Yarn Deno Bun

npm install @jcbhmr/ungh

Usage

Browser Node.js Deno Bun

import { 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.

Development

Vite+ Node.js

Get started using Vite+.

Setup command
vp install
Test command
vp test
Build command
vp pack

About

πŸ™ ungh.cc API client for JavaScript

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages