Currently to get data for a package as JSON, you need to add .json to the end of a package name, for example https://replacements.fyi/is-number.json
I propose to change the route to /api/is-number, or /api?package=is-number, or something similar
The main reasons is when a package does not exist (for example https://replacements.fyi/nuxt.json), an html 404 page is returned instead of structured JSON
Currently to get data for a package as JSON, you need to add
.jsonto the end of a package name, for example https://replacements.fyi/is-number.jsonI propose to change the route to
/api/is-number, or/api?package=is-number, or something similarThe main reasons is when a package does not exist (for example https://replacements.fyi/nuxt.json), an html 404 page is returned instead of structured JSON