Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

c5-github-repos-search

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c5-github-repos-search

Testin package to see repos by user

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

Installation

# using npm
npm install c5-github-repos-search

# using yarn
yarn add c5-github-repos-search

Usage

# using require
const { getRepos } = require('c5-github-repos-search');

# using import
import { getRepos } from 'c5-github-repos-search';

Example

Using promises:

getRepos({
  username: "c5m7b4", // 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:

const getRepositories = async function () {
  const repositories = await getRepos({
    username: "c5m7b4", // 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();

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts