Name Days (cs)
Simple library to get Czech name days (jmeniny
, svátek
) for a given date.
Functions
You can import the whole module or just specific functions:
import * as namedays from 'namedays-cs';
import {getNameDay} from 'namedays-cs';
Getting Name Days
You can get name days for a given date:
import {getNameDay} from 'namedays-cs';
const date = new Date(2024, 11, 24);
getNameDay(date);
getNameDay(date).join(' a ');
It is possible that there are no name days for a given date:
import {getNameDay} from 'namedays-cs';
const date = new Date(2024, 11, 25);
getNameDay(date);
Credits
License
MIT