Nourished Personal Mucus
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    viewport-listpublic

    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.

    Related

    License

    MIT © Kevin Mårtensson

    install

    npm i viewport-list

    Downloadslast 7 days

    1,164

    version

    5.1.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar
    • avatar