{"bugs":{"url":"https://github.com/raxjs/universal-api/issues"},"dist":{"shasum":"28cfd9e345a3c6784ee5fa17361f9a8cb95ceb81","tarball":"https://registry.npmjs.org/universal-device/-/universal-device-1.0.2-beta.1.tgz","fileCount":14,"integrity":"sha512-wiNfXpLAZG3zi8JtlLHcsaQ848BQ6DDyOCpvMjmOtRB4OfO+qMFb3Cr9XES9hKSH3oIIin2ASQNYRmSruWWEBg==","signatures":[{"sig":"MEQCIE+mniyoIr+1ZJaGUr2C1NlgFYT/0Ndt5/87w0lWwYKAAiBjRYzXxEimaJw7XTy/CrQ5v0EhzYkUVfD/pG5MHW70Yg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11772,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdvAMSCRA9TVsSAnZWagAAPzgP/1yMjrV6F62K0CUT6mYG\nR0i/3lH4qTaLWnH2tPlBq4MA6sqov8SVVU6vz4vYZ1JULg+ZiTy4ylNLw1cc\naoP4LmVEJuRongN/oawe7eVdkac03M+/E6e9dACZNjAr4uhEBaYDkafS6HHB\nDfpmVldIPwJD1bZxyUAim2Ve7ZSqz75yS4tSSJNCuATXFFSFfDdX5xqnse5K\nk2We1fxfB+rFZR8Jtv9IvANao7Zlmp49oBWNetqziFq5uIZaTjBDTn4BRYB5\nMc4c8qEeULLzTRWAFKhUXM8nOB6ZrLQ6cvCziAElN5zmoRRS2USynuUwPpvd\noi26gAQ07q1jI8OBoHcbFnYEwnLGE87fYgztQ9GZ0prwiNb4vkWP09fjl91I\n2bbQGdn99JmXrpXhhyRyD+6L5AsB4sQTWIeNHNQO+shrw+UjGIhvwOVwkIsS\nyxNYwS0/jcRqKp2wtCH4IwU9Hii6IP4y9Clf8x0i5QKAUjWOLGckfrs2kz3D\n+nJ01vOmu2J0Fi7m7U3BKW385Fvpn/0JgU1zGS3fLmNW748W2X40NrxHTz6k\n7ho7WMN3QR9176Z2Y+8L7nujx2U6bKm2/SdXxMKNkIGP6mCP325sV3vFoWG4\nmGSFJsCaPrSoJY1I5Yc4SU7T1Vd/jpMgmym/xX/w0tUYJ5R3baGwQns1y9BC\nZ1Gf\r\n=nr4E\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"universal-device","types":"lib/index.d.ts","author":{"name":"rax"},"readme":"# universal-device [![npm](https://img.shields.io/npm/v/universal-device.svg)](https://www.npmjs.com/package/universal-device)\n\nSystem info.\n\n## Supported\n<img alt=\"browser\" src=\"https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"weex\" src=\"https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg\" width=\"25px\" height=\"25px\"> <img alt=\"miniApp\" src=\"https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg\" width=\"25px\" height=\"25px\">\n\n## Install\n```bash\n$ npm install universal-device --save\n```\n\n## Usage\n\n```javascript\nimport { platform, appName, screenWidth, screenHeight, px2rpx  } from 'universal-device';\n\n```\n\n## APIS\n\n### `appName: string`\napp name or browser name\n\n### `platform: string`\nplatform: 'Android'、'iOS'、'MacIntel', etc.\n\n### `screenWidth: number`\nScreen width in px\n\n### `screenHeight: number`\nScreen height in px\n\n### `px2rpx(val)`\npx to rpx method\n\n### `rpx2px(val)`\nrpx to px method\n\n#### Arguments\n| Property | Type     | Describes | Default | Supports |\n| -------- | -------- | --------- | :-----: | :------: |\n| val      | `number` | px value  |    -    |          |\n\n","engines":{"npm":">=3.0.0"},"license":"BSD-3-Clause","scripts":{"lint":"eslint --ext .js --ext .jsx --ext .ts --ext .tsx ./src","test":"rax-scripts test","build":"rax-scripts build --type 'component'","start":"rax-scripts start --type 'component' -p 8000","prebuild":"npm run lint && npm run test","prepublish":"npm run build","start:miniapp":"rax-scripts start --type 'component-miniapp'"},"_npmUser":{"name":"balloonzzq","email":"zqzhuang888@qq.com"},"homepage":"https://github.com/raxjs/universal-api#readme","keywords":["Rax"],"pre-commit":["lint","test"],"repository":{"url":"git+https://github.com/raxjs/universal-api.git","type":"git"},"_npmVersion":"6.10.1","description":"System info.","directories":{},"maintainers":[{"name":"balloonzzq","email":"zqzhuang888@qq.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"yacheng","email":"narutosun2@163.com"}],"_nodeVersion":"9.11.1","dependencies":{"universal-env":"^2.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rax":"^1.0.4","eslint":"^5.15.1","rax-text":"^1.0.0","rax-view":"^1.0.0","driver-dom":"^1.0.0","typescript":"^3.4.5","@types/jest":"^24.0.12","driver-weex":"^1.0.0","rax-scripts":"1.2.1-beta.2","babel-eslint":"^10.0.1","eslint-config-rax":"^0.0.0","eslint-plugin-react":"^7.12.4","eslint-plugin-import":"^2.17.2","@typescript-eslint/parser":"^1.7.0","@typescript-eslint/eslint-plugin":"^1.7.0"},"_npmOperationalInternal":{"tmp":"tmp/universal-device_1.0.2-beta.1_1572602642497_0.6935581484786424","host":"s3://npm-registry-packages"},"_id":"universal-device@1.0.2-beta.1","version":"1.0.2-beta.1"}