Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: