{"library":"device-detector-js","type":"library","category":null,"description":"device-detector-js is a robust JavaScript/TypeScript library designed for precise user agent parsing and device detection. It identifies the browser, operating system, device type (desktop, mobile, tablet, TV, etc.), brand, and model from any user agent string. As a JavaScript port of Matomo's highly regarded `device-detector` library (specifically version 4.2.3), it benefits from an extensive and regularly updated open-source user agent database. The current stable version is 3.0.3, and its release cadence is likely tied to updates from the upstream Matomo project to maintain accuracy and coverage. Key differentiators include its lack of external dependencies, comprehensive TypeScript support, and a rigorous testing suite comprising over 10,000 user agent strings. While it functions in both Node.js and browser environments, the library strongly advises against browser-side usage for performance-critical applications due to its size and processing overhead.","language":"javascript","status":"active","version":"3.0.3","tags":["javascript","user-agent","parsing","parser","device","mobile","tablet","phone","desktop","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install device-detector-js","imports":["import DeviceDetector from 'device-detector-js';","import BotDetector from 'device-detector-js/dist/parsers/bot';","import type { DeviceDetectorResult, DeviceDetectorOptions } from 'device-detector-js';"]},{"cmd":"yarn add device-detector-js","imports":[]},{"cmd":"pnpm add device-detector-js","imports":[]}],"homepage":null,"github":"https://github.com/etienne-martin/device-detector-js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/device-detector-js","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/device-detector-js/compatibility"}}