golden-ratio

1.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    5
  • 1.0.0
    0

Package Sidebar

Install

npm i golden-ratio

Weekly Downloads

5

Version

1.0.1

License

MIT

Last publish

Collaborators

  • hemanth