# calendar-fp

> Framework agnostic calendar helper functions

Latest version **1.0.3** (published 2021-05-14) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2021-05-14 |
| First published | 2021-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 27 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | deepakbhattarai |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2021-05-14
- 1.0.2 — 2021-04-12
- 1.0.1 — 2021-04-11

## README

# Calendar FP

[![calendar-fp](https://circleci.com/gh/calendar-fp/calendar-fp.svg?style=svg)](https://circleci.com/gh/calendar-fp/calendar-fp)
[![npm version](https://badge.fury.io/js/calendar-fp.svg)](https://badge.fury.io/js/calendar-fp)
[![codecov](https://codecov.io/gh/calendar-fp/calendar-fp/branch/master/graph/badge.svg?token=md910beGWr)](https://codecov.io/gh/calendar-fp/calendar-fp)

Framework agnostic calendar helper functions.

### Features
* All functional style coding
* Small codebase
* It uses `date-fns` library for date manipulations.

Docs: https://calendar-fp.github.io/calendar-fp/globals.html

### Example
```js
import {
  getAllDates,
  getAllDatesMatrix,
  getDays,
  getMonthAndYear,
  getNextMonth,
  getPrevMonth
} from 'calendar-fp';


console.log(getAllDates(new Date(2021, 0, 1)));
// [new Date(2020, 11, 27), new Date(2020, 11, 28), new Date(2020, 11, 29), ...]

console.log(getDays());
// ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']

```

Code Sandbox: https://codesandbox.io/s/bold-dawn-h2ohv?file=/src/index.js

### Implementations

*All are work in progress*

Vanilla JS: https://github.com/calendar-fp/calendar-fp-vanilla-js

React: https://github.com/calendar-fp/calendar-fp-react

Vue: https://github.com/calendar-fp/calendar-fp-vue

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