# search-github-repo

> Get a list of Github repositories of specified username sorted by numbers of stars in descending order and last updated time

Latest version **1.0.0** (published 2022-03-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install search-github-repo
pnpm add search-github-repo
yarn add search-github-repo
bun add search-github-repo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2022-03-29 |
| First published | 2022-03-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rohit Deware |
| Maintainers | rohit_deware |
| Keywords | github, repos, repositories, sort, stars |

## Links

- npm: https://www.npmjs.com/package/search-github-repo
- Repository: https://github.com/RohitDeware/search-github-repo
- Issues: https://github.com/RohitDeware/search-github-repo/issues
- npm.io page: https://npm.io/package/search-github-repo

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.20.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-03-29

## README

# search-github-repo

Get a list of Github repositories of specified username sorted by numbers of stars in descending order and last updated time

## Installation

```js
# using npm
npm install search-github-repo

# using yarn
yarn add search-github-repo
```

## Usage

```js
# using require
const { getRepos } = require('search-github-repo');

# using import
import { getRepos } from 'search-github-repo';
```

## Example

### Using promises:

```js
getRepos({
  username: 'gaearon', // provide GitHub username here
  page: 1, // optional property: default value is 1
  per_page: 50 // optional property: default value is 30
}).then((repositories) => console.log(repositories));
```

### Using async/await:

```js
const getRepositories = async function () {
  const repositories = await getRepos({
    username: 'gaearon', // provide GitHub username here
    page: 1, // optional property: default value is 1
    per_page: 50 // optional property: default value is 30
  });
  console.log(repositories);
};

getRepositories();
```

---
_Source: https://npm.io/package/search-github-repo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
