js-aspect-ratio
A simple package for calculate the aspect ratio
Install
npm install js-aspect-ratio
Synopsis
Get aspect with ratio 4:3 from a height of 375px
var AspectRatio = default // you must import like **require('js-aspect-ratio')**var aspectRatio = 4 3 // Here you must specify the want aspect ratio 4:3, 16:9 var test =
Or get a aspect height ratio 4:3 from a width of 500px
License
MIT