UNPKG

dogyears

Version:

This is a module for calculating dog years

31 lines (23 loc) 1.4 kB
# DogYears [![Build Status](https://travis-ci.org/davidfekke/dogyears.svg?branch=master)](https://travis-ci.org/davidfekke/dogyears) [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Coverage Status](https://coveralls.io/repos/davidfekke/dogyears/badge.svg?branch=master&service=github)](https://coveralls.io/github/davidfekke/dogyears?branch=master) [![npm version](https://badge.fury.io/js/dogyears.svg)](https://badge.fury.io/js/dogyears) [![Node v5.0](http://img.shields.io/badge/node-v5.0-brightgreen.svg)](https://nodejs.org) [![Node v4.0](http://img.shields.io/badge/node-v4.0-green.svg)](https://nodejs.org) [![Node v0.12](http://img.shields.io/badge/node-v0.12-yellowgreen.svg)](https://nodejs.org) [![Node v0.10](http://img.shields.io/badge/node-v0.10-yellow.svg)](https://nodejs.org) [downloads-image]: https://img.shields.io/npm/dm/dogyears.svg [npm-url]: https://www.npmjs.com/package/dogyears [npm-image]: https://img.shields.io/npm/v/dogyears.svg Use this module to convert human years for your pet into dog years. [![NPM](https://nodei.co/npm/dogyears.png)](https://nodei.co/npm/dogyears/) ## Example ```javascript var DogYears = require('dogyears'); // The first parameter is the actual age of the dog, and the second is the weight of the dog. console.log(DogYears(12, 10)); > 64.00810235249003 ``` Copyright 2016