Skip to content
On this page

getDeviceVendor(model: string): string | undefined

Guess for the device vendor from a device model name

Code Example

js
import { getDeviceVendor } from 'ua-parser-js/helpers';

console.log(getDeviceVendor('SM-A605G'));       // Samsung
console.log(getDeviceVendor('Redmi Note 8'));   // Xiaomi
console.log(getDeviceVendor('Nexus 6P'));       // Huawei
console.log(getDeviceVendor('Quest 3'));        // Facebook
console.log(getDeviceVendor('AQUOS-TVX19B'));   // Sharp

Licensed under the MIT License.