Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
I wanted to use device-detector in a Node.js project but I couldn't find any port of this lib that I could rely on. The only two ports that I found were these guys:
The thing is, they are both poorly tested and unmaintained. I don't want to take the gamble of running these libs in production.
So, I decided to write my own port of device-detector using typescript. It uses this repo as a dependency so it can easily be updated whenever we add new regexes or tests to this repo. It passes the ~6300 tests from this repo and it's also pretty fast. I gave it the original name of device-detector-js:
If you guys agree I will create a PR to update the README.md with this new port.
I just created a Github issue template to tell people where to report issues about missing/incorrect detections: https://github.com/etienne-martin/device-detector-js/issues/new