xuqiang-cli
Version:
st-cli脚手架
19 lines (14 loc) • 366 B
JavaScript
const axios = require("axios")
axios.interceptors.response.use((res) => {
return res.data
})
async function getRepo() {
return axios.get("https://api.github.com/users/tyi4654/repos")
}
async function getTagsByRepo(repo) {
return axios.get(`https://api.github.com/repos/tyi4654/${repo}/tags`)
}
module.exports = {
getRepo,
getTagsByRepo,
}