Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 1.03 KB

README.md

File metadata and controls

65 lines (46 loc) · 1.03 KB

expo-router-sitemap

Usage

Call this script in your Expo Router project via:

npx expo-router-sitemap

Overview

Inspired by this X post by @kadikraman, I figured it would be useful to come up with a script that could check an Expo Router project.

image

Example Output

Valid

/
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom

✅ No route collisions detected.

Invalid

/
 - src/app/(app)/(tabs)/index.tsx
 - src/app/(app)/index.tsx
/[...missing]
/community
/log-in
/podcasts/
/podcasts/[id]
/podcasts/latest
/profile
/showroom

❌ Collisions detected!

Development

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.27. Bun is a fast all-in-one JavaScript runtime.