1.0.10 • Published 1 year ago
device-model-parser v1.0.10
device-model-parser
Converts the model of Android devices into the extended name.
The list is taken from https://storage.googleapis.com/play_public/supported_devices.html and converted to this interface
interface IDeviceModelInfo {
retailBranding: string;
marketingName: string;
device: string;
model: string;
}
Example:
import getDeviceList from "device-model-parser";
const deviceMap = getDeviceList();
console.log(deviceMap.get("SM-G980F")?.marketingName);
Output: \