Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyle-seongwoo-jun/apple-device-identifiers
JSON files for mapping iOS, iPadOS, tvOS, watchOS, visionOS and macOS device identifiers to some human readable equivalent.
https://github.com/kyle-seongwoo-jun/apple-device-identifiers
apple deno ios ipados macos tvos typescript visionos watchos
Last synced: about 2 months ago
JSON representation
JSON files for mapping iOS, iPadOS, tvOS, watchOS, visionOS and macOS device identifiers to some human readable equivalent.
- Host: GitHub
- URL: https://github.com/kyle-seongwoo-jun/apple-device-identifiers
- Owner: kyle-seongwoo-jun
- License: mit
- Created: 2021-07-12T16:01:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T06:31:48.000Z (about 2 months ago)
- Last Synced: 2024-10-25T01:23:30.383Z (about 2 months ago)
- Topics: apple, deno, ios, ipados, macos, tvos, typescript, visionos, watchos
- Language: TypeScript
- Homepage:
- Size: 55.7 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apple-device-identifiers
JSON files for mapping iOS, iPadOS, tvOS, watchOS, visionOS and macOS device identifiers to some human readable equivalent.
## Usage
You can download JSON files from the repository.
```shell
curl https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/main/ios-device-identifiers.json > ios-device-identifiers.json
```Here is a simple example using the JSON file with bash and [jq](https://stedolan.github.io/jq/).
```shell
function get_apple_device_name() {
local URL="https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/main"
local OS="$1" # ios, tvos, watchos, visionos, mac
local IDENTIFIER="$2"
curl "$URL/$OS-device-identifiers.json" | jq -r ".[\"$IDENTIFIER\"]"
}$ get_apple_device_name ios iPhone16,1
iPhone 15 Pro$ get_apple_device_name mac Mac15,11
MacBook Pro (16-inch, Nov 2023)
```## Genrerate JSON file
```shell
# iOS, iPadOS, tvOS, watchOS, visionOS
deno run --allow-run --allow-read --allow-write scripts/scrape-from-xcode.ts# macOS
deno run --allow-net --allow-write scripts/scrape-from-apple.ts
deno run --allow-read --allow-write scripts/migrate-json.ts
```## References (iOS, iPadOS, tvOS, watchOS)
- [Identify your iPhone model](https://support.apple.com/en-us/108044)
- [Identify your iPad model](https://support.apple.com/en-us/108043)
- [Identify your iPod model](https://support.apple.com/en-us/103823)
- [Identify your Apple Watch](https://support.apple.com/en-us/108056)
- [Identify your Apple TV model](https://support.apple.com/en-us/101605)## Sources (macOS)
- [Identify your MacBook model](https://support.apple.com/en-us/103257)
- [Identify your MacBook Air model](https://support.apple.com/en-us/102869)
- [Identify your MacBook Pro model](https://support.apple.com/en-us/108052)
- [Identify your iMac model](https://support.apple.com/en-us/108054)
- [Identify your Mac mini model](https://support.apple.com/en-us/102852)
- [Identify your Mac Pro model](https://support.apple.com/en-us/102887)