trending-gitlab
v0.0.4
Published
Simple API for getting trending repositories on Gitlab
Downloads
5
Readme
GitLab Trending
Simple API for getting trending repositories on GitLab.
Note: it uses axios and cheerio to fetch data on the https://gitlab.com/explore page. No API used.
Usage
const trending = require('gitlab-trending');
trending('stars')
.then(repos => console.log(repos));
/** Output:
[ { author: 'GitLab.org',
name: 'GitLab Community Edition',
fullName: 'GitLab.org / GitLab Community Edition',
href: 'https://gitlab.com/gitlab-org/gitlab-ce',
description: 'GitLab Community Edition (CE) is an open source end-to-end software development platform with built-in version control, issue tracking, code review, CI/CD, and more. Self-host GitLab CE on your own servers, in a container, or on a cloud provider.',
stars: 5627,
forks: 5627,
lastUpdate: '2019-02-27T20:06:21Z' },
[...]
{ author: 'GitLab.org',
name: 'GitLab Development Kit',
fullName: 'GitLab.org / GitLab Development Kit',
href: 'https://gitlab.com/gitlab-org/gitlab-development-kit',
description: 'Get started with GitLab Rails development',
stars: 351,
forks: 351,
lastUpdate: '2019-02-27T17:43:28Z' } ]
**/
ToDo
- [x] Tests
- [x] Fetch forks (see #48398)
- [x] Add sort by: Last updated, Name, Oldest updated, Oldest created, Last created
- [x] Publish package on npmjs
Thanks
This is based on the work of ecrmnn for trending-github.