Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

4by3

YuriBrunetto152MIT1.3.2

Returns the 4:3, 16:9 or 21:9 ratio value of a requested number

4by3, 4:3, 16:9, 21:9, wide, widescreen, ratio, aspect

readme

4by3

Build Status

:shipit: Returns the 4:3, 16:9 or 21:9 ratio value of a requested number

Install

$ [sudo] npm install -g 4by3

You might require sudo to install it globally.

Usage

4:3

$ 4by3 800 # returns 600

16:9

$ 4by3 800 --wide # returns 450

21:9

$ 4by3 210 --ultrawide # returns 90

License

MIT © Yuri Brunetto