android-device-list
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/android-device-list package

1.2.10 • Public • Published

Android device list

npm

A JSON list created from Google Play Supported devices CVS.

Source: https://support.google.com/googleplay/android-developer/answer/6154891?hl=en

Install

$ npm install android-device-list

Usage

.deviceList() : Array

Returns the full device list

.brandList() : Array

Returns the full brand list

.getDevicesByBrand(brand, [options]) : Array

Returns a device list with matching retail brand.

options is an Object.

  • caseInsensitive: boolean (default false) - do not care of case type
  • contains: boolean (default false) - return partial (substring) results too

.getDevicesByName(name, [options]) : Array

Returns a device list with matching marketing name.

.getDevicesByDeviceId(deviceId, [options]) : Array

Returns a device list with matching build.os.DEVICE.

.getDevicesByModel(model, [options]) : Array

Returns a device list with matching build.os.MODEL.

Example

var androidDevices = require('android-device-list');

var devices = androidDevices.deviceList();
var brands = androidDevices.brandList();

console.log(devices.length);
// 11174

console.log(brands.length);
// 485

console.log(brands[209]);
// 'LGE'

var LGDevices;

LGDevices = androidDevices.getDevicesByBrand('lg');
console.log(LGDevices.length);
// 0

LGDevices = androidDevices.getDevicesByBrand('LG');
console.log(LGDevices.length);
// 0

LGDevices = androidDevices.getDevicesByBrand('lg', { contains: true, caseInsensitive: true });
console.log(LGDevices.length);
// 902

LGDevices = androidDevices.getDevicesByBrand('LG', { contains: true });
console.log(LGDevices.length);
// 901


LGDevices = androidDevices.getDevicesByBrand('LGE');
console.log(LGDevices.length);
// 896

console.log(LGDevices[403]);
// { brand: 'LGE', name: 'LG G4', device: 'p1', model: 'LG-H815' }

License

android-device-list is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.102,952latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.102,952
1.2.947
1.2.842
1.2.7181
1.2.60
1.2.50
1.2.451
1.2.30
1.2.22
1.2.11
1.2.041
1.1.860
1.1.850
1.1.842
1.1.830
1.1.821
1.1.810
1.1.801
1.1.791
1.1.781
1.1.770
1.1.761
1.1.750
1.1.740
1.1.730
1.1.710
1.1.700
1.1.690
1.1.681
1.1.670
1.1.660
1.1.650
1.1.641
1.1.630
1.1.620
1.1.611
1.1.600
1.1.590
1.1.580
1.1.570
1.1.560
1.1.550
1.1.540
1.1.530
1.1.520
1.1.511
1.1.500
1.1.492
1.1.480
1.1.470
1.1.460
1.1.450
1.1.441
1.1.430
1.1.420
1.1.410
1.1.401
1.1.390
1.1.380
1.1.370
1.1.360
1.1.351
1.1.341
1.1.330
1.1.320
1.1.310
1.1.300
1.1.290
1.1.281
1.1.270
1.1.260
1.1.250
1.1.241
1.1.231
1.1.220
1.1.210
1.1.200
1.1.190
1.1.180
1.1.170
1.1.161
1.1.150
1.1.141
1.1.130
1.1.121
1.1.110
1.1.101
1.1.90
1.1.80
1.1.70
1.1.61
1.1.50
1.1.40
1.1.30
1.1.20
1.1.00
1.0.780
1.0.770
1.0.760
1.0.750
1.0.741
1.0.730
1.0.720
1.0.711
1.0.700
1.0.690
1.0.681
1.0.670
1.0.661
1.0.650
1.0.640
1.0.631
1.0.620
1.0.610
1.0.600
1.0.590
1.0.580
1.0.570
1.0.560
1.0.551
1.0.540
1.0.530
1.0.521
1.0.510
1.0.501
1.0.490
1.0.481
1.0.470
1.0.460
1.0.450
1.0.441
1.0.430
1.0.420
1.0.410
1.0.401
1.0.391
1.0.380
1.0.370
1.0.360
1.0.350
1.0.341
1.0.330
1.0.320
1.0.310
1.0.301
1.0.290
1.0.280
1.0.270
1.0.261
1.0.250
1.0.240
1.0.230
1.0.221
1.0.211
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.141
1.0.131
1.0.120
1.0.110
1.0.102
1.0.90
1.0.81
1.0.70
1.0.60
1.0.50
1.0.31
1.0.21
1.0.11
1.0.01

Package Sidebar

Install

npm i android-device-list

Weekly Downloads

3,368

Version

1.2.10

License

MIT

Unpacked Size

4.28 MB

Total Files

10

Last publish

Collaborators

  • pbakondy