UNPKG
gxm-build-cli
Version:
latest (1.0.1)
1.0.1
1.0.0
一个mini版的脚手架
gxm-build-cli
/
bin
/
http.js
18 lines
(12 loc)
•
301 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 引入axios
const
axios =
require
(
'axios'
); axios.
interceptors
.
response
.
use
(
(
res
) =>
{
return
res.
data
; });
// 获取git上的项目列表
async
function
getRepolist
(
) {
return
axios.
get
(
'https://api.github.com/orgs/yuan-cli/repos'
); }
module
.
exports
= { getRepolist };