# dogyear

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

Latest version **1.0.2** (published 2023-06-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install dogyear
pnpm add dogyear
yarn add dogyear
bun add dogyear
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-06-06 |
| First published | 2023-06-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 28 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | eoms |
| Maintainers | eeoms |
| Keywords | dog, dogyears, years, calculator, fun, animal |

## Links

- npm: https://www.npmjs.com/package/dogyear
- Repository: https://github.com/eeoms/DogYear
- Homepage: https://github.com/eeoms/DogYear#readme
- Issues: https://github.com/eeoms/DogYear/issues
- npm.io page: https://npm.io/package/dogyear

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^3.2.6
- [@types/node](https://npm.io/package/@types/node.md) ^18.0.6

## Recent versions

- 1.0.2 (latest) — 2023-06-06
- 1.0.1 — 2023-06-06
- 1.0.0 — 2023-06-05

## README

# DogYear

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

[![NPM](https://nodei.co/npm/dogyear.png)](https://nodei.co/npm/dogyear/)

## Human years to dog years

```javascript
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

```javascript
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

---
_Source: https://npm.io/package/dogyear · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
