2.1.5 • Published 2 years ago

aspect-ratio v2.1.5

Weekly downloads
2,226
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.1.5

2 years ago

2.1.2

2 years ago

2.1.3

2 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.3

6 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

10 years ago

0.12.13

11 years ago

0.12.12

11 years ago