@naverpay/device-info 0.0.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +26 -0
- package/aos.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @naverpay/device-info
|
|
2
|
+
|
|
3
|
+
디바이스ID를 사용자에게 익숙한 모델명으로 변경하기 위한 라이브러리입니다.
|
|
4
|
+
|
|
5
|
+
- iOS 는 `Identifier` 를 `Generation` 로 맵핑합니다.
|
|
6
|
+
- 안드로이드는 `Model` 을 `Marketing Name` 으로 맵핑합니다.
|
|
7
|
+
|
|
8
|
+
아래 두 문서를 기반으로 정보를 수집하며 매주 월요일마다 업데이트됩니다.
|
|
9
|
+
- https://storage.googleapis.com/play_public/supported_devices.html
|
|
10
|
+
- https://theapplewiki.com/wiki/Models
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install --save @naverpay/device-info
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
```javascript
|
|
21
|
+
import iOSDeviceInfo from '@naverpay/device-info/ios.json'
|
|
22
|
+
import androidDeviceInfo from '@naverpay/device-info/aos.json'
|
|
23
|
+
|
|
24
|
+
console.log(iosDeviceInfo['iPhone15,4']) // "iPhone 15"
|
|
25
|
+
console.log(androidDeviceInfo['SM-S901B']) // "Galaxy S22"
|
|
26
|
+
```
|