A library for converting device IDs to user-friendly model names.
- For iOS, it maps
Identifier
toGeneration
. - For Android, it maps
Model
to MarketingName
.
These data are collected based on the following documents and updated every Monday:
- https://storage.googleapis.com/play_public/supported_devices.html
- https://theapplewiki.com/wiki/Models
npm install --save @naverpay/device-info
import { ios, aos } from "@naverpay/device-info";
console.log(ios["iPhone15,4"]); // "iPhone 15"
console.log(aos["SM-S901B"]); // "Galaxy S22"