I’ve been working on project and ran into an issue when running it on mobile, most specifically on an iPad. To solve this I wanted to detect what device was being used and I ran into ua-parser-js. After doing some research on it, I came across some old news of malware being found in said package, but never found anything about being fixed. Does anyone know if the package is now safe? And if the package is not safe does anyone know of anything I can use to detect the device?
I’m using NextJS 14 btw.