ua-parser-js
Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data. Supports browser & node.js environment
environment
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
detect-node
Detect Node.JS (as opposite to browser environment) (reliable)
detect-browser
Unpack a browser type and version from the useragent string