1.0.1 • Published 8 months ago

ungh-client v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

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.

1.0.1

8 months ago

1.0.0

10 months ago