# get-dates-until

> Takes an end date and an (optional) start date, returns an array of Date objects representing the calendar days until the end date.

Latest version **1.0.0** (published 2016-10-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install get-dates-until
pnpm add get-dates-until
yarn add get-dates-until
bun add get-dates-until
```

## 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.0 |
| Published | 2016-10-03 |
| First published | 2016-10-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ross Barnes |
| Maintainers | rossb |

## Links

- npm: https://www.npmjs.com/package/get-dates-until
- Repository: https://github.com/rossb/get-dates-until
- Homepage: https://github.com/rossb/get-dates-until#readme
- Issues: https://github.com/rossb/get-dates-until/issues
- npm.io page: https://npm.io/package/get-dates-until

## Dependencies (2)

- [get-next-date](https://npm.io/package/get-next-date.md) ^1.0.0
- [get-midnight-date](https://npm.io/package/get-midnight-date.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2016-10-03

## README

# get-dates-until

GetDatesUntil(endDate[, startDate])

Takes an end date and an (optional) start date, returns an array of Date objects representing the calendar days until the end date.

If no start date is given today will be assumed. If the end date is the same as the start date, or before the start date, an empty array will be returned.

## Install

```sh
$ npm install get-dates-until --save
```

## Usage

```js
const GetDatesUntil = require('get-dates-until');

let theYear2525 = new Date(2525, 0, 1);
let daysToGo = GetDatesUntil(theYear2525);
// Array of objects representing every day from now until the year 2525
```

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