# month-week

> A tool for generating monthly and weekly data

Latest version **1.0.0** (published 2020-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install month-week
pnpm add month-week
yarn add month-week
bun add month-week
```

## 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 | 2020-07-29 |
| First published | 2020-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | livye |
| Maintainers | livye |

## Links

- npm: https://www.npmjs.com/package/month-week
- Repository: https://github.com/yeahliv/month-week
- Homepage: https://github.com/yeahliv/month-week#readme
- Issues: https://github.com/yeahliv/month-week/issues
- npm.io page: https://npm.io/package/month-week

## Recent versions

- 1.0.0 (latest) — 2020-07-29

## README

# month-week
A tool for generating monthly and weekly data

## Install
```bash
npm install month-week --save
```

## Use
```javascript
import {Month, Week} from 'month-week'

const month = new Month()
const week = new Month()

month.today // Today
month.year // Year
month.month // month
month.curMonthFirstDate() // Return current month first day instance of Date Object
month.curMonthFirstDay() // Return current month first day
month.curMonthLastDate() // Return current month last day instance of Date Object
month.lastMonthLastDate() // Return last month last day instance of Date Object
month.preMonthDayCount() // Return last month day count
month.getMonth() // Return current month data
month.lastMonth() // Return last month data
month.nextMonth() // Return next month data
month.resetMonth() // Reset and return current month data

week.today // Today
week.time // Current time
week.day() // Return day
week.isToday() // Check is today
week.monday() // Return monday instance of Date Object
week.monLastDay() // Return last sunday instance of Date Object
week.sunday() // Return sunday instance of Date Object
week.sunNextDay() // Return next monday instance of Date Object
week.week() // Return this week data
week.lastWeek() // Return last week data
week.nextWeek() // Return next week data
week.reset() // Reset and return this week data
```

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