viewport-list

Return a list of devices and their viewports

viewport-list

Return a list of devices and their viewports

$ npm install --save viewport-list

Pass in a optional keyword which is a device name from this list.

var viewport = require('viewport-list');
 
viewport(['iphone 4s'], function (erritems) {
    if (err) {
        throw err;
    }
    
    console.log(items);
    //=> [{name: 'iphone 4s', platform: 'iOS', os: '4.3.5', size: '320x480', release: '2011-10'}] 
});

Type: Array
Default: []

An array of device names to fetch.

Type: Function

Returns an array of object containing devices and their attributes.

$ npm install --global viewport-list
$ viewport-list --help
 
Usage
  $ viewport-list [device]
  $ viewport-list < <file>
 
Example
  $ viewport-list iphone4 iphone5
  $ viewport-list < devices.txt

MIT © Kevin Mårtensson