/calendar-generator

Simple calendar generator functions.

Primary LanguageJavaScript

Calendar Library

Simple calendar library that generates weeks and months.

Functions

generateWeeks

A function that returns a week generator.

const weekGenerator = generateWeeks(new Date())
const week1 = weekGenerator()
const week2 = weekGenerate()

generateMonths

A function that returns a month generator.

const monthGenerator = generateMonths(new Date())
const month1 = monthGenerator()
const month2 = monthGenerator()