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