npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sanctus

v1.0.15

Published

Generate saints of the Martyrology of the Roman Catholic Church

Readme

Quickstart setup

Install module:

npm i sanctus

Sample uses


import {SaintInfo, Sanctus} from "sanctus";

const sanctus = new Sanctus();

// Get a single saint for February 17, 2025
const saint: SaintInfo | undefined = sanctus.getSaint(new Date(2025, 1, 17));
console.log(saint?.name); // "San Teodoro de Bizancio"
// Get a saint using month (0-11) and day 
const saintByDate: SaintInfo | undefined = sanctus.getSaintFromMonthDay(2, 17);
console.log(saintByDate?.name); // "San Teodoro de Bizancio"
// Get all saints of the current day
const sanctus = new Sanctus();
const saintsOfDay: SaintInfo[] = sanctus.getSaintsOfDay();
console.log(saintsOfDay);
// Set a new date
sanctus.setDate(new Date(2025, 5, 1));
const saintsFromNewDate: SaintInfo[] = sanctus.getSaintsOfDay();
console.log(saintsFromNewDate);

Test

To run the test suite (with vitest), execute:

To run the app:

# linux and mac users:
make test
# for windows users:
npm run test

SanctusInterface Documentation

The SanctusInterface provides methods to retrieve information about saints based on dates or direct month/day lookups.

Interface Definition

export interface SanctusInterface {
    getSaint: (date?: Date) => SaintInfo | undefined;
    getSaintFromMonthDay: (month: number, day: number) => SaintInfo | undefined;
    getSaintsOfDay: (date?: Date) => SaintInfo[];
    getAllSaints: () => SaintInfo[];
    getCurrentDate: () => Date;
    setDate: (date: Date) => void;
}

Function Documentation

| Method | Description | Parameters | Return Type | Example Call | |------------------------|---------------------------------------|------------------------------|--------------------------|--------------------------------------------| | getSaint | single saint info for the given date. | date?: Date | SaintInfo \| undefined | sanctus.getSaint(new Date(2025, 1, 17)); | | getSaintFromMonthDay | single saint for month and day. | month: number, day: number | SaintInfo \| undefined | sanctus.getSaintFromMonthDay(2, 17); | | getSaintsOfDay | all saints for the given date. | date?: Date | SaintInfo[] | sanctus.getSaintsOfDay(); | | getAllSaints | all saints in the database. | None | SaintInfo[] | sanctus.getAllSaints(); | | getCurrentDate | currently set date in the instance. | None | Date | sanctus.getCurrentDate(); | | setDate | Sets a new date | date: Date | void | sanctus.setDate(new Date(2025, 5, 1)); |


SaintInfo Type Definition

export type SaintInfo = {
    month: number;
    day: number;
    category: number;
    name: string;
    birth?: string;
    dead?: string;
    meaning?: string;
    shortDescription?: string;
    description?: string;
};

SaintInfo Properties

| Property | Type | Required | Description | |--------------------|----------|----------|--------------------------------------------------| | month | number | ✅ Yes | Month of the saint's feast day (1-12). | | day | number | ✅ Yes | Day of the saint's feast day (1-31). | | category | number | ✅ Yes | Category or rank of the saint: principal or not. | | name | string | ✅ Yes | Name of the saint. | | birth | string | ❌ No | Birth year or approximate time. | | dead | string | ❌ No | Death year or approximate time. | | meaning | string | ❌ No | Meaning or significance of the saint's name. | | shortDescription | string | ❌ No | Brief summary of the saint. | | description | string | ❌ No | Detailed description of the saint's life. |