UNPKG
yunai-cli
Version:
latest (1.0.1)
1.0.1
1.0.0
一个多功能的自定义脚手架
yunai-cli
/
bin
/
http.js
13 lines
(10 loc)
•
240 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
axios =
require
(
'axios'
); axios.
interceptors
.
response
.
use
(
(
res
) =>
{
return
res.
data
; })
async
function
getRepolist
(
) {
return
axios.
get
(
'https://api.github.com/orgs/yunai-cli/repos'
) }
module
.
exports
= { getRepolist };