Useful CLI to get github repositories
- Since Github API do have rate limit, i do use another approach is to get infomation in webpage.
- But it's not good if we send too much request, so i do store data in local json files to read more faster and we don't have to request to github too much. Just when we need lastest data, we do update (It's like
git pull
...).
$ npm install -g all-repos-cli
$ repos --help
Usage
$ repos
$ repos <github-username>
Options
--update, --u Update repositories data to latest
--updateUser, --uu Update default user (Since 'npm whoami' is quite slow)
--clearCache, --cc Clear local cache
Examples
$ repos Get local repositories of current user
$ repos banminkyoz Get local repositories of 'banminkyoz'
$ repos --u Update repositories of current user to latest
$ repos --u banminkyoz Update repositories of 'banminkyoz' to latest
$ repos --uu Update npm current logged user
$ repos --cc Clear all local cache
- all-repos - API for this module
MIT © Kyoz