This version has been deprecated

Author message:

getrepos has been renamed to @bevry/github-repos: npm uninstall 'getrepos' && npm install '@bevry/github-repos' && open 'https://www.npmjs.com/package/@bevry/github-repos'

getrepos
TypeScript icon, indicating that this package has built-in type declarations

4.0.0-next.1576454857.29cf8abd5db5370b3dc424e33dc47a86a6aca51b • Public • Published

Get Repositories

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Fetch the specified repositories, or those that match a particular github user or search query

Install

npm

  • Install: npm install --save getrepos
  • Require: require('getrepos')

jspm

<script type="module">
    import * as pkg from '//dev.jspm.io/getrepos'
</script>

This package is published with the following editions:

  • getrepos/source/index.ts is typescript source code with import for modules
  • getrepos/edition-browsers/index.js is typescript compiled against ESNext for web browsers with import for modules
  • getrepos aliases getrepos/edition-esnext/index.js
  • getrepos/edition-esnext/index.js is typescript compiled against ESNext for Node.js with require for modules

Environments older than Node.js v8 may need Babel's Polyfill or something similar.

Usage

API Documentation.

import {
    fetchRepo,
    fetchRepos,
    fetchReposFromSearch,
    fetchReposFromUsers
} from 'getrepos'

// https://developer.github.com/v3/repos/#get
fetchRepo('bevry/getrepos')
    .then(console.log)
    .catch(console.error)
fetchRepos(['bevry/getrepos'])
    .then(console.log)
    .catch(console.error)

// https://developer.github.com/v3/search/#search-repositories
fetchReposFromSearch('@bevry', { pages: 0 })
    .then(console.log)
    .catch(console.error)
fetchReposFromUsers(['bevry'], { pages: 0 })
    .then(console.log)
    .catch(console.error)

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

Package Sidebar

Install

npm i getrepos@4.0.0-next.1576454857.29cf8abd5db5370b3dc424e33dc47a86a6aca51b

Version

4.0.0-next.1576454857.29cf8abd5db5370b3dc424e33dc47a86a6aca51b

License

MIT

Unpacked Size

35.6 kB

Total Files

10

Last publish

Collaborators

  • balupton
  • bevryme