2.1.5 • Published 5 months ago

aspect-ratio v2.1.5

Weekly downloads
2,226
License
MIT
Repository
github
Last release
5 months ago

aspect-ratio

Last version Coverage Status NPM Status

Get the aspect ratio of a device.

Install

npm install aspect-ratio --save

Usage

with Node.js

const ratio = require('aspect-ratio')
console.log(ratio(1920, 1080)) // => 16:9
console.log(ratio(1920, 1080, '/')) // => 16/9

with CLI

$ aspect-ratio

  Get the screen aspect ratio of a device

  Usage
    $ aspect-ratio <width><height>[options]

    options:
     -s          specified a separator. (by default is ':').
     --version   output the current version.

    examples:
     aspect-ratio 1920 1080
     aspect-ratio 800 600 -s /

License

MIT © Kiko Beats

2.1.4

7 months ago

2.1.5

5 months ago

2.1.2

1 year ago

2.1.3

1 year ago

2.1.1

4 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.0

9 years ago

0.12.13

9 years ago

0.12.12

9 years ago