HardwareStringResolver.js
A JavaScript based mapping helper to convert hardware device model codes (e.g. iPad2,1) to their human readable names (e.g. iPad 2).
The data is mainly sourced from the Wikipedia page List of iOS devices. The project is derived from https://github.com/JoshTheGeek/node-ios-devices.
Install
bower install hardware-string-resolver-js --save
Using
Just use the try method of the HardwareStringResolver class to get the human readable name of a specific device code:
alert(HardwareStringResolver.try('iPhone5,1'));Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -m 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :)