Skip to content

Alfio010/device-model-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
image

About

Converts the model of Android devices into the extended name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published