# days-difference

> calculate difference between two dates

Latest version **1.0.1** (published 2022-03-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install days-difference
pnpm add days-difference
yarn add days-difference
bun add days-difference
```

## 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.1 |
| Published | 2022-03-27 |
| First published | 2022-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 778 B |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Saad Elsabahy |
| Maintainers | saadelsabahy |

## Links

- npm: https://www.npmjs.com/package/days-difference
- Repository: https://github.com/saadelsabahy/days-difference
- npm.io page: https://npm.io/package/days-difference

## Recent versions

- 1.0.1 (latest) — 2022-03-27
- 1.0.0 — 2022-03-27

## README

# days-difference

#### This is asmall package to calculate the difference between two dates in days

### Example
````md
const dif = require('days-difference');

console.log(dif(new Date(2022, 2, 22), new Date()));5
````

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