aspect-ratios

0.0.1 • Public • Published

aspect-ratios

browser support

example

 
    var aspectRatios = new Aspects(['16:9', '4:3', '1:1', '2:1']);
 
    var aspect = aspectRatios.ratio(800, 600);
 
    assert.equal(aspect.actual, '4:3');
    assert.equal(aspect.ratio, '4:3');
    assert.equal(aspect.accuracy, 100);
 

license

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.11

Package Sidebar

Install

npm i aspect-ratios

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • tomkp