screen-size-calculator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Screen Size Calculator

The javascript library class for calculating screen size.

Usage

import ScreenSizeCalculator from 'screen-size-calculator';
 
// I wish get the width and height size of the 55 inches screen.
const size = new ScreenSizeCalculator({ diagonal: 55, unit: 'inch' });
size.getData().width;  // 47.94
size.getData().height; // 26.96
 
// What's the value as centimeters?
size.getData('cm').width;  // 121.76
size.getData('cm').height; // 68.49

License

The MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i screen-size-calculator

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

35.8 kB

Total Files

15

Last publish

Collaborators

  • archco