Hacker News new | ask | show | jobs
by myvoiceismypass 830 days ago
It is (or should be) common practice to parse/validate any external data you depend on. You should be doing this for Javascript too. I find that the library https://zod.dev/ is quite helpful for this