summaryrefslogtreecommitdiff
path: root/smoke/astro.build-main/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'smoke/astro.build-main/src/utils.ts')
-rw-r--r--smoke/astro.build-main/src/utils.ts8
1 files changed, 0 insertions, 8 deletions
diff --git a/smoke/astro.build-main/src/utils.ts b/smoke/astro.build-main/src/utils.ts
deleted file mode 100644
index 85684adf0..000000000
--- a/smoke/astro.build-main/src/utils.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-const formatter = Intl.NumberFormat('en', { notation: 'compact' });
-
-let stars: string;
-export async function getStars() {
- if (stars) return stars;
- stars = await fetch('https://api.github.com/repos/withastro/astro').then(res => res.json()).then(res => formatter.format(res.stargazers_count));
- return stars;
-}