Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
1234567891011121314import { 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 }}