deviceatlas
v0.1.3
Published
Node Device Atlas API
Downloads
10
Readme
deviceatlas
Unofficial Node Device Atlas API
About
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.
Install
npm install deviceatlas
A copy of your Device Atlas data
This initial version is a wrapper around PHP
. Ouch, I know.
Usage
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', ...
});
To Do
Drop PHP dependency and need for callback
License
Dual:
- The official API holds it's own license. See files in
DeviceApi/
for details. - This package: MIT