# monthdiff

> ```{r, engine='bash', count_lines} npm install monthdiff

Latest version **1.0.4** (published 2018-11-12) · ISC license · 0 weekly downloads

## Install

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

## 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.4 |
| Published | 2018-11-12 |
| First published | 2018-11-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 141.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | mprambadi@gmail.com |
| Maintainers | mprambadi |

## Links

- npm: https://www.npmjs.com/package/monthdiff
- Repository: https://github.com/mprambadi/monthdiff
- Homepage: https://github.com/mprambadi/monthdiff#readme
- Issues: https://github.com/mprambadi/monthdiff/issues
- npm.io page: https://npm.io/package/monthdiff

## Recent versions

- 1.0.4 (latest) — 2018-11-12
- 1.0.3 — 2018-11-12
- 1.0.2 — 2018-11-07
- 1.0.1 — 2018-11-07
- 1.0.0 — 2018-11-07

## README

# installation

```{r, engine='bash', count_lines}
npm install monthdiff

yarn add monthdiff
```

# Usage

```javascript
const {calcMonth, calclMonthMod} = require('monthdiff')


calcMonth(6,7)("+") // should return 1
calcMonth(3,7)("-") // should return 8
calcMonthMod(6,7) // should return 1
calcMonthMod(3,-7) // should return 8

```

You can use the output to as setMonth parameter on  `new Date().setMonth()` method

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