edi.deviceinfo

1.0.2 • Public • Published

edi.deviceinfo

Installation

npm install edi.deviceinfo

Usage

const deviceInfo = require('edi.deviceinfo');

const info = await deviceInfo.getDeviceInfo();

// Result example:
// {
//     canvasFingerprint: 'a1b2c3d4',
//     screenResolution: {
//         w: 1920,
//         h: 1080
//     },
//     screenTotalPixels: 2073600,
//     timeZone: 'America/New_York',
//     userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36',
//     platform: 'Windows',
//     platformVersion: '15.0',
//     architecture: 'x86'
// }

Readme

Keywords

none

Package Sidebar

Install

npm i edi.deviceinfo

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

7.37 kB

Total Files

5

Last publish

Collaborators

  • ediwang1202