# add-days

> add days to a date (without mutation)

Latest version **2.0.1** (published 2020-01-04) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2020-01-04 |
| First published | 2020-01-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | blewisio |
| Keywords | date, add, days |

## Links

- npm: https://www.npmjs.com/package/add-days
- Repository: https://github.com/blewisio/add-days
- Homepage: https://github.com/blewisio/add-days#readme
- Issues: https://github.com/blewisio/add-days/issues
- npm.io page: https://npm.io/package/add-days

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2020-01-04

## README

# add-days

Add or subtract days from a date (without modifying the original date)

## Install

```sh
npm install add-days
```

## Usage

```js
const addDays = require('add-days');

const today = new Date();
const tomorrow = addDays(today, 1);
// today.toISOString() => '1985-09-25T00:00:00.000Z'
// tomorrow.toISOString() => '1985-09-26T00:00:00.000Z' 
```

## API

### addDays(date, days)

#### date

Type: `Date` _(required)_

#### days

Type: `Number` _(required)_

## License

MIT

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