import { computed } from '#imports' import { useFetch } from 'vue-use-web' export function useGithub(repo: string) { const { response } = useFetch(`https://api.github.com/repos/${repo}`, {}) const stars = computed( () => response.value && response.value.stargazers_count ) const language = computed(() => response.value && response.value.language) return { stars, language } }