github_trending 0.0.1 copy "github_trending: ^0.0.1" to clipboard
github_trending: ^0.0.1 copied to clipboard

outdated

Get GitHub trending repositories

github_trending #

A library to get GitHub trending repositories for Dart and Flutter developers.

Installation #

Add github_trending as a dependency in your pubspec.yaml file

Usage #

import 'package:github_trending/github_trending.dart';

main() async {
  // get trending repositories
  var repos = await getTrendingRepositories();
  print(repos[0].owner);

  // specify time period
  var weeklyRepos = await getTrendingRepositories(since: TrendingRepositorySince.weekly);
  print(weeklyRepos[0].name);

  // specify language
  var dartRepos = await getTrendingRepositories(language: 'dart');
  print(dartRepos[0].primaryLanguage.name);
}

License #

MIT

2
likes
0
pub points
9%
popularity

Publisher

unverified uploader

Get GitHub trending repositories

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

html, http

More

Packages that depend on github_trending