universal-device
System info.
Last updated 5 years ago by balloonzzq .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install universal-device 
SYNC missed versions from official npm registry.

universal-device npm

System info.

Supported

browser weex miniApp

Install

$ npm install universal-device --save

Usage

import { platform, appName, screenWidth, screenHeight, px2rpx  } from 'universal-device';

APIS

appName: string

app name or browser name

platform: string

platform: 'Android'、'iOS'、'MacIntel', etc.

screenWidth: number

Screen width in px

screenHeight: number

Screen height in px

px2rpx(val)

px to rpx method

rpx2px(val)

rpx to px method

Arguments

Property Type Describes Default Supports
val number px value -

Current Tags

  • 2.1.1-0                                ...           beta (5 years ago)
  • 2.3.1                                ...           latest (4 years ago)

15 Versions

  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.1-0                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.1.0-1                                ...           5 years ago
  • 2.1.0-0                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2-beta.1                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-beta.1                                ...           5 years ago
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (15)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE