Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobyab/numbers.tobyb.dev
🚑 🚒 🚓 Your local emergency numbers, where ever you are in the world! ✨
https://github.com/tobyab/numbers.tobyb.dev
Last synced: 5 days ago
JSON representation
🚑 🚒 🚓 Your local emergency numbers, where ever you are in the world! ✨
- Host: GitHub
- URL: https://github.com/tobyab/numbers.tobyb.dev
- Owner: tobyab
- Created: 2023-08-16T11:06:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-12T18:42:33.000Z (about 1 year ago)
- Last Synced: 2024-05-02T04:52:29.980Z (8 months ago)
- Language: TypeScript
- Homepage: https://numbers.tobyb.dev
- Size: 223 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![screenshot of numbers.tobyb.dev in action](https://github.com/developedbytoby/numbers.tobyb.dev/assets/77097223/1d898d47-b194-4a1a-a70f-1c4a38d5509a)
# numbers.tobyb.dev 🚑 🚒 🚓
bored of constantly having to google and remember new emergency numbers every single time you visit a new country? well! this tiny utility is for you! ✨## how does it work?
using middleware, the website determines which country you're in. once it's done this, it'll then set a cookie called `countryCode`, which has the value of an iso 3166-1 alpha-2 code that belongs to the country you're currently located in!after this, it then fetches the emergency numbers, and country name from the [emergency number api](https://emergencynumberapi.com/), and displays this data to the user!