UNPKG
st-build-cli
Version:
latest (1.0.1)
1.0.1
1.0.0
一个创建基础应用的自定义脚手架
st-build-cli
/
bin
/
http.js
14 lines
(11 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
axios =
require
(
'axios'
); axios.
interceptors
.
response
.
use
(
(
res
) =>
{
return
res.
data
; });
// 获取git上的项目列表
async
function
getRepolist
(
) {
return
axios.
get
(
'https://api.github.com/users/qingleizhang123/repos'
); }
module
.
exports
= { getRepolist };