Mornius

October 18, 2023 (11mo ago)

GitHub | npm version: 1.0.0

Mornius is a package that provides access to the Github API.

Installation

npm install mornius

Usage

getRepositories(query: string)

return repositories that match the query

import { getRepositories } from "mornius";
const repositories = await getRepositories("grkndev/twitcher");

getUser(username: string)

return user information

import { getUser } from "mornius";
const user = await getUser("grkndev");

searchUsers(query)

return users that match the query

Optional parameters:

import { searchUsers } from "mornius";
const users = await searchUsers("grkndev");

searchTopics(query)

return topics that match the query

Optional parameters:

import { searchTopics } from "mornius";
const topics = await searchTopics("twitcher");