# getduration

> This Module will provide you with three types of duration 1. Year to Date 2. Month to Date 3. Week to Date

Latest version **1.0.8** (published 2019-02-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install getduration
pnpm add getduration
yarn add getduration
bun add getduration
```

## 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.8 |
| Published | 2019-02-08 |
| First published | 2019-02-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ayush |
| Maintainers | aayush1310 |
| Keywords | duration, month to date, year to date, week to date |

## Links

- npm: https://www.npmjs.com/package/getduration
- npm.io page: https://npm.io/package/getduration

## Recent versions

- 1.0.8 (latest) — 2019-02-08
- 1.0.7 — 2019-02-08
- 1.0.6 — 2019-02-08
- 1.0.5 — 2019-02-08
- 1.0.4 — 2019-02-08
- 1.0.3 — 2019-02-08
- 1.0.2 — 2019-02-08
- 1.0.1 — 2019-02-08
- 1.0.0 — 2019-02-08

## README

# getDuration

This Module will help in finding durations like
1. Year to Date : It will give you Year to Date Duration ie ( First Day of the Year to Yesterday)
2. Month to Date: It will give you Month to Date Duration ie ( First Day of the Month to Yesterday)
3. Week to Date: It will give you Week to Date Duration ie ( First Day of the Week to Yesterday), The Week     starts from Monday

# Usage
#NodeJs/Express

var Duration = require('getduration');

var YearToDate = Duration.getDuration('ytd');
var MonthToDate = Duration.getDuration('mtd');
var WeektoDate = Duration.getDuration('wtd');

#param/Parameters

param/Parameters include 
1. 'ytd' for Year to date
2. 'mtd' for Month to Date
3. 'wtd' for Week to Date

# githubLink

https://github.com/aayush1310/getDuration

#Installation

#NodeJS

npm install getDuration --save

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