# @types/moment-business

> TypeScript definitions for moment-business

Latest version **3.0.1** (published 2025-10-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/moment-business
pnpm add @types/moment-business
yarn add @types/moment-business
bun add @types/moment-business
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.1 |
| Published | 2025-10-24 |
| First published | 2017-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/moment-business
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-business
- npm.io page: https://npm.io/package/@types/moment-business

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.18.0

## Recent versions

- 3.0.1 (latest) — 2025-10-24
- 3.0.0 (ts5.0) — 2024-11-03
- 0.1.6 (ts4.6) — 2023-11-07
- 0.1.4 (ts4.2) — 2017-10-25
- 0.1.5 — 2023-10-18
- 0.1.3 — 2017-08-31
- 0.1.2 — 2017-08-21
- 0.1.1 — 2017-03-27
- 0.1.0 — 2017-03-21

## README

# Installation
> `npm install --save @types/moment-business`

# Summary
This package contains type definitions for moment-business (https://github.com/jmeas/moment-business).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-business.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-business/index.d.ts)
````ts
import moment = require("moment");

/**
 * Calculate the number of week days between `startMoment` and `endMoment`. Week days are Monday through Friday.
 * If `endMoment` comes before `startMoment`, then this function will return a negative value.
 */
export function weekDays(startMoment: moment.Moment, endMoment: moment.Moment): number;

/**
 * Calculate the number of weekend days between the `startMoment` and `otherMoment`. Weekend days are Saturday and Sunday.
 * If `endMoment` comes before `startMoment`, then this function will return a negative value.
 */
export function weekendDays(startMoment: moment.Moment, endMoment: moment.Moment): number;

/**
 * Add week days to a moment, modifying the original moment. Returns the moment.
 */
export function addWeekDays(moment: moment.Moment, amount: number): moment.Moment;

/**
 * Subtract week days from the moment, modifying the original moment. Returns the moment.
 */
export function subtractWeekDays(moment: moment.Moment, amount: number): moment.Moment;

/**
 * Whether or not the Moment is a week day (Monday - Friday).
 */
export function isWeekDay(moment: moment.Moment): boolean;

/**
 * Whether or not the Moment occurs on Saturday or Sunday.
 */
export function isWeekendDay(moment: moment.Moment): boolean;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [moment](https://npmjs.com/package/moment)

# Credits
These definitions were written by [Greg Sieranski](https://github.com/wonbyte).

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