npm install deviceatlasUnofficial Node Device Atlas API
Device Atlas is a database of mobile device information. The official is available at http://deviceatlas.com/downloads. Unfortunately, there isn't an official API for Node or Javascript.
``bash`
npm install deviceatlas
A copy of your Device Atlas data
This initial version is a wrapper around `PHP`. Ouch, I know.
`js`
var DeviceAtlas = require('deviceatlas');
var DA = DeviceAtlas('DeviceAtlas.json');
var ua = 'SonyEricssonW850i/R1GB Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1';
DA.device(ua, function(error, properties) {
console.log(properties); // {u'gprs': '1', u'mpeg4': '1', u'drmOmaForwardLock': '1', ...
});
Drop PHP dependency and need for callback
Dual:
- The official API holds it's own license. See files in `DeviceApi/`` for details.
- This package: MIT