Skip to content

hemanth/golden-ratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golden-ratio Build Status

Golden ratio with a number.

Install

$ npm install --save golden-ratio

Usage

const goldenRatio = require('golden-ratio');

goldenRatio({x:1}); //=> { y: 1.618, x: 1 }

goldenRatio({y:1}); //=> { x: 0.6180469715698392, y: 1 }

goldenRatio({x:'meow'}); //=> 'Error: Missing expected input'

License

MIT © Hemanth.HM