Skip to content

Simple library to get Czech name days (jmeniny, svátek) for a given date.

License

Notifications You must be signed in to change notification settings

OzzyCzech/namedays-cs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name Days (cs)

NPM Downloads NPM Version NPM License Last Commit GitHub Workflow Status

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); // 24. december 2024

// Get name days for a given date
getNameDay(date); // ['Adam', 'Eva']
getNameDay(date).join(' a '); // Adam a Eva

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); // 25. december 2024

getNameDay(date); // [] (empty array)

Credits

License

MIT

About

Simple library to get Czech name days (jmeniny, svátek) for a given date.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published