1.0.0 • Published 7 months ago

like-github v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

like-github

GitHub API wrapper for Node.js

npm i like-github

Usage

const GitHub = require('like-github')

const gh = new GitHub()

for await (const repo of gh.users.reposAll('<username>')) {
  console.log('-', repo.name, repo.description)

  const pkg = await gh.users.package(repo.owner.login, repo.name)
  const readme = await gh.users.readme(repo.owner.login, repo.name)

  console.log('Package', pkg.name, pkg.version, pkg.main, pkg.license)
  console.log('Documentation', readme)
}

API

github = new GitHub([options])

Create a GitHub instance.

Options:

{
  token // For higher rate-limits
}

License

MIT

1.0.0

7 months ago