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.

const viewportList = require('viewport-list');
 
viewportList(['iphone 4s']).then(items => {
console.log(items);
//=> [{name: 'iphone 4s', platform: 'iOS', os: '4.3.5', size: '320x480', release: '2011-10'}] 
});

Returns a promise that resolves to an array of viewports.

Type: array
Default: []

An array of device names to fetch.

MIT © Kevin Mårtensson