Skip to content

javierlopezdeancos/almanaque

Repository files navigation

Almanaque

Another calendar typescript library

Almanaque

Activity

GitHub issues GitHub all releases GitHub Workflow Status npm

Use it

Install

npm install almanaque --save-dev

Import

Import Almanaque class from your node modules in order to get new instance with new:

import Almanaque from 'almanaque';

Use

Get your instance

const almanaque = new Almanaque();

Instance with reference date

We could get our instance passing any reference date, by default this reference date should be today date:

const today = new Date();
const almanaque = new Almanaque(today);

Get current month days

const monthDays = almanaque.currentDays();

Examples

React

Review and check a react example to try it.