New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

github-trendy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-trendy

Node package to retrieve GitHub trending repositories

latest
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

github-trendy

Node package to retrieve GitHub trending repositories

Installation

npm i github-trendy --save

Usage

var getRepositories = require('github-trendy').getRepositories;
// OR import { getRepositories } from 'github-trendy'

getRepositories('javascript', 'weekly').then(function (repositories) {
  // repositories is a collection of:
  //  title: string
  //  description: string
  //  language: string
  //  stars: number
  //  uri: string
}, function (error) { ... });
  • The getRepositories function takes language and range strings.
  • Valid values for range are 'daily', 'weekly', or 'monthly'.
  • For a list of valid language strings, visit https://github.com/trending, select a language, and inspect the address in the browser.

FAQs

Package last updated on 18 Jul 2017

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