monthCalendarfunction
A whole month as an SVG: a wall poster, a memo board, a spiral-bound wall page or a desk pad.
The library knows no holiday: every note on a day is yours to give.
Import it
import { monthCalendar } from "@johnmorrisdotca/koyomi-calendars/month";
Definition
function monthCalendar(options: MonthCalendarOptions): string
Parameters
| Name | Type | Description |
|---|---|---|
options | MonthCalendarOptions | The |
Returns
string
The page as SVG text, <svg …>…</svg>. It throws a RangeError for a year or month that is out of range.
Examples
import { monthCalendar } from "@johnmorrisdotca/koyomi-calendars/month";
const svg = monthCalendar({ year: 2026, month: 11, design: "poster", scheme: "dark" });
console.log(svg.startsWith("<svg"));trueWhat it prints (run when this page was built)