全部回购
通过用户名获取所有github仓库
安装
$ npm install all-repos --save
用法
const allRepos = require ( 'all-repos' ) ;
allRepos ( 'banminkyoz' ) . then ( repos => {
console . log ( repos ) ;
} ) . catch ( error => {
console . log ( error ) ;
} ) ;
/* Results:
[
{
name: 'neovim',
fullName: 'banminkyoz/neovim',
description: 'My neovim config XD',
stars: '1',
forks: 0,
forkFrom: '',
1