npm install @uni/system-info

Gets system information.

``bash`
$ npm install @uni/system-info --save`
orbash`
$ npm install @uni/apis --saveUsage
`javascript
import { getInfo, getInfoSync } from '@uni/system-info';
getInfo().then(res => console.log(res));
let res = getInfoSync();
`
You can also import from the big package:
`js
import { systemInfo } from '@uni/apis';
systemInfo.getInfo().then(res => console.log(res));
let res = systemInfo.getInfoSync();
`
| Property | Type | Description |
| --- | --- | --- |
| pixelRatio | number | Device's pixel ratio |number
| screenWidth | | Screen width in px |number
| screenHeight | | Screen height in px |number
| windowWidth | | Available window width in px |number
| windowHeight | | Available window height in px |string
| language | | Language,zh_CN 简体中文,zh_TW 繁体中文,en 英文 |string
| version | | version |string` | Client platform |
| platform |
