https://github.com/hbjydev/denocto
A GitHub API wrapper for Deno
https://github.com/hbjydev/denocto
api deno github module typescript
Last synced: 2 months ago
JSON representation
A GitHub API wrapper for Deno
- Host: GitHub
- URL: https://github.com/hbjydev/denocto
- Owner: hbjydev
- Created: 2019-10-12T22:09:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T00:29:21.000Z (about 6 years ago)
- Last Synced: 2025-03-21T22:42:10.174Z (over 1 year ago)
- Topics: api, deno, github, module, typescript
- Language: TypeScript
- Size: 136 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Denocto
A GitHub API Wrapper for [Deno](https://deno.land).
## Testing
To run the unit tests for this API wrapper, it's as simple as running the following:
```
$ deno run **/*_test.ts --allow-env --allow-net
```
And to use a token with it, set the `GITHUB_TOKEN` environment variable.
## Usage
### Users
```ts
import { getUser } from "https://denopkg.com/haydennyyy/denocto/user.ts"
getUser("haydennyyy")
.then(res => {
console.log(res.login) // "haydennyyy"
})
.catch(err => {
console.error(err);
});
```
#### getUser
| Argument | Type | Description |
|----------|---------|-------------------------------------|
| username | string | The username to get information for |
| token | string? | The token to get information with |
## Gists
Documentation coming soon...