Skip to main content
Home

small date utilities

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
9 months ago (0.1.3)
function addDays
addDays<TDate extends Date>(
date: TDate,
days: number,
): TDate

adds a specified number of days to a date.

Type Parameters

TDate extends Date

Parameters

date: TDate

the date to add days to.

days: number

the number of days to add.

Return Type

a new date with the added days.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";
or

Import directly with a jsr specifier

import { addDays } from "jsr:@mary/date-fns";

Add Package

pnpm i jsr:@mary/date-fns
or (using pnpm 10.8 or older)
pnpm dlx jsr add @mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";

Add Package

yarn add jsr:@mary/date-fns
or (using Yarn 4.8 or older)
yarn dlx jsr add @mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";

Add Package

vlt install jsr:@mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";

Add Package

npx jsr add @mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";

Add Package

bunx jsr add @mary/date-fns

Import symbol

import { addDays } from "@mary/date-fns";