ios-devices

1.3.0 • Public • Published

node-ios-devices

A JSON object mapping iOS device model codes (e.g. iPad2,1) to their respectively marketing names (e.g. iPad 2).

The data is mainly sourced from here.

The following C code prints the device model code:

#include <sys/sysctl.h>
size_t size;
sysctlbyname("hw.machine"NULL, &size, NULL0);
char result[size];
sysctlbyname("hw.machine", result, &size, NULL0);
printf("%s\n", result);
 
// result is a typical C string that can be passed to [NSString stringWithUTF8String:result]; 

Thanks to vijaymadhavan for adding more detail to each row. (See pull request #2)

License

This is released into the public domain under the Unlicense. This information is publicly available.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.3.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.3.0
    7
  • 1.2.0
    0
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i ios-devices

Weekly Downloads

7

Version

1.3.0

License

Unlicense

Last publish

Collaborators

  • joshthegeek