screensize
v1.0.0
Published
Calculate screen dimensions from diagonal and resolution
Downloads
6
Maintainers
Readme
screensize
Calculate screen dimensions from diagonal and resolution
Installation
$ npm install --save screensize
Usage
var screensize = require('screensize');
var dimensions = screensize.calculate(5.70, 2560, 1440);
/*
* dimensions
* .width = 4.96798...
* .height = 2.79449...
*/
License
MIT © Nikolay Kim