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

A library to get GitHub trending repositories and developers, with languages and period options.

example/github_trending_example.dart

import 'package:github_trending/github_trending.dart';

void main() async {
  final trending = GithubTrending();

  // get trending repositories
  var repos = await trending.getTrendingRepositories();
  print(repos[0].name);

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

  // specify language
  var dartRepos = await trending.getTrendingRepositories(language: 'dart');
  print(dartRepos[0].language); // Dart
  print(dartRepos[0].languageColor); // #00B4AB
}
2
likes
120
points
80
downloads

Publisher

unverified uploader

Weekly Downloads

A library to get GitHub trending repositories and developers, with languages and period options.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, json_annotation

More

Packages that depend on github_trending