Skip to content
/ octono Public

๐Ÿ‚ GitHub REST API for Deno projects

License

Notifications You must be signed in to change notification settings

jcrqr/octono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‚ Octono

GitHub REST API for Deno projects.

๐Ÿšง Under active development. DO NOT use in production.

Installation

import { Octono } from "https://deno.land/x/[email protected]/mod.ts";

Usage

import { request } from "https://deno.land/x/[email protected]/mod.ts";

const resp = await Octono.request("GET /users/{username}/repos", {
  username: "octocat"
})

const repos = await resp.json();

for (const repo of repos) {
  console.log(`Found repo: ${repo.full_name} (${repo.stargazers_count} stars)`);
}

See example.ts. Use deno run --allow-env --allow-net example.ts to run it.

Permissions

This module requires --allow-env and --allow-net permissions.

Contributing

Please, see CONTRIBUTING.md to learn how you can contribute to this repository.

License

This project is released under the MIT License.