UNPKG

catyears

Version:

A function to calculate cat years.

31 lines (23 loc) 1.33 kB
# CatYears [![Build Status](https://travis-ci.org/davidfekke/catyears.svg?branch=master)](https://travis-ci.org/davidfekke/catyears) [![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Coverage Status](https://coveralls.io/repos/davidfekke/catyears/badge.svg?branch=master&service=github)](https://coveralls.io/github/davidfekke/catyears?branch=master) [![npm version](https://badge.fury.io/js/catyears.svg)](https://badge.fury.io/js/catyears) [![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/catyears.svg [npm-url]: https://www.npmjs.com/package/catyears [npm-image]: https://img.shields.io/npm/v/catyears.svg Use this module for calculating how old your cat is in cat years. [![NPM](https://nodei.co/npm/catyears.png)](https://nodei.co/npm/catyears/) ## Example ```javascript var CatYears = require('catyears'); // Put your cats actual age into the parameter. console.log(CatYears(10)); > 57 ``` Copyright 2016