# calendar-npm

> Calendar for java script (type script) projects.

Latest version **2.0.5** (published 2022-09-03) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2022-09-03 |
| First published | 2022-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gagik Chilingaryan |
| Maintainers | gagik-arch |
| Keywords | calendar, java script calendar, js calendar, datepicker, ts calendar, type script calendar, datepicker |

## Links

- npm: https://www.npmjs.com/package/calendar-npm
- Repository: https://github.com/Gagik-arch/calendar
- Homepage: https://github.com/Gagik-arch/calendar#readme
- Issues: https://github.com/Gagik-arch/calendar/issues
- npm.io page: https://npm.io/package/calendar-npm

## 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.5 (latest) — 2022-09-03
- 2.0.4 — 2022-08-28
- 2.0.3 — 2022-08-28
- 2.0.2 — 2022-08-28
- 2.0.1 — 2022-08-24
- 2.0.0 — 2022-08-21
- 1.9.0 — 2022-08-21
- 1.8.0 — 2022-08-21
- 1.7.0 — 2022-08-21
- 1.6.0 — 2022-08-21
- 1.5.0 — 2022-08-21
- 1.4.0 — 2022-08-20
- 1.3.0 — 2022-08-20
- 1.2.0 — 2022-08-20
- 1.1.0 — 2022-08-20
- … 1 more at https://npm.io/package/calendar-npm/versions

## README

# Calendar-npm

This project is intended to be consumed for all of type java script projects.

[![Build Status](https://github.com/Gagik-arch/calendar-npm)](https://github.com/Gagik-arch/calendar-npm)
[![npm version](https://www.npmjs.com/package/calendar-npm)](https://www.npmjs.com/package/calendar-npm)

## Table of contents

-   [Installation](#installation)
-   [Usage](#usage)
-   [Arguments](#Arguments)
-   [Methods](#Methods)
-   [Object](#Object)
-   [Built With](#built-with)
-   [Author](#author)

## Installation

```sh
$ npm install calendar-npm
```

## Usage

```sh
 const calendar = new Calendar()
```

#### Arguments

| Type          | Default value | example                                            |
| ------------- | ------------- | -------------------------------------------------- |
| Date {Object} | new Date()    | const calendar = new Calendar(new Date(2022,7,15)) |

#### Methods

| Method      | argument      |
| ----------- | ------------- |
| toDate      | Date {Object} |
| toPrevMonth | none          |
| toNextMonth | none          |
| toNextYear  | none          |
| toPrevYear  | none          |

Example:

```js
const calendar = new Calendar();
const btn = document.getElementByTabName("button")[0];

btn.onclick = () => {
    // calendar.toDate(new Date(2025,5,16));
    // calendar.toPrevMonth();
    // calendar.toNextMonth();
    // calendar.toNextYear();
    // calendar.toPrevYear();
};
```

```ts
import Calendar, { ICalendar, IDay } from "calendar-npm";

const calendar: ICalendar = new Calendar();
```

#### Object

| keys         | values        |
| ------------ | ------------- |
| currentDate  | Date {Object} |
| selectedDate | Date {Object} |
| months       | [string]      |
| weekDays     | [string]      |
| days         | Day{Object}   |

## Built With

-   Gagik-arch

## Author

-   **Gagik** - _Initial work_ - [gagik-arch](https://github.com/Gagik-arch/calendar-npm)

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