viewport-list

Return a list of devices and their viewports

MIT 19 个版本
安装
npm install viewport-list
yarn add viewport-list
pnpm add viewport-list
bun add viewport-list
README

viewport-list Build Status

Return a list of devices and their viewports

Install

$ npm install --save viewport-list

Usage

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

const viewportList = require('viewport-list');

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

API

viewportList([items])

Returns an array of viewports.

items

Type: Array
Default: []

An array of device names to fetch.

License

MIT © Kevin Mårtensson

版本列表
5.1.1 2016-10-17
5.1.0 2016-10-17
5.0.1 2016-06-30
5.0.0 2016-06-30
4.0.1 2015-10-04
4.0.0 2015-10-04
3.0.1 2015-05-25
3.0.0 2015-02-10
2.1.0 2015-01-03
2.0.0 2014-10-30
1.0.1 2014-09-18
1.0.0 2014-09-17
0.2.1 2014-08-12
0.2.0 2014-07-01
0.1.4 2014-04-07
0.1.3 2014-04-07
0.1.2 2014-04-04
0.1.1 2014-04-04
0.1.0 2014-04-04