ungh-client
v1.0.1
Published
Unofficial ungh API client
Downloads
94
Readme
UNGH-client
An unofficial client for the UNGH API, statically typed and easy to use.
Since the UNGH official client is not published yet, I decided to create this client to help me with my projects.
Installation
npm install ungh-client
Usage
import { client } from 'ungh-client';
const res = await client.GET('/repos/{owner}/{name}', {
params: {
path: {
owner: 'ungh',
name: 'pathe',
},
},
});
console.log(`The awesome repo have ${res.data?.repo?.stars} stars!`);
Powered by openapi-ts, so this client is type-safe.