Skip to content

Pray-As-You-Go/adventus

Repository files navigation

Adventus

Get liturgical information about a given day.

Getting Started

$ yarn add adventus

Usage

import { today } from 'adventus';

const liturgicalInfo = today(new Date(2024, 11, 25));
{
  "date": "2024-12-25",
  "season": "christmas",
  "weekOfSeason": 1,
  "dayOfSeason": 1,
  "feasts": [
    {
      "name": "The Nativity of the Lord",
      "rank": "solemnity"
    }
  ]
}