1.0.2 • Published 12 months ago

dogyear v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

DogYear

Use this module to convert human years for your pet into dog years, and reverse.

NPM

Human years to dog years

const dy = require('dogyear');

// The first parameter is the actual human years age of the dog, and the second is if you want to round the age or not.
console.log(dy.dogYear(7, true));
> 62

Dog years to human years

const dy = require('dogyear');

// The first parameter is the actual dog years age of the dog, and the second is if you want to round the age or not.
console.log(dy.reverseDogYear(71, true));
> 12

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Mozilla Public License 2.0

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago