3.0.5 • Published 4 years ago

propor v3.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

📐 propor

Instalation

$ npm i -g propor

Documentation

To get the ratio and the percentage between two dimensions. The first one is the the width and the second argument is the height.

$ propor 1600 900

The result for this will be the following:

The ratio is: 16:9

The percentage is: 56.25%

To get the opposite dimension of a ratio use the following method. When you want to get a height, send the value after the flag --width and then the width and height. To achieve the opposite, send the height value after the --height flag.

$ propor 1600 900 -w 16
$ propor 1600 900 --width 16

The result for this will be something like this:

The proportional height is: 9

$ propor 1600 900 -h 9
$ propor 1600 900 --height 9

The result for this will be something like this:

The proportional width is: 16

Donation

Buy me a coffee

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.5

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago