Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

namedays-cs

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

namedays-cs

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

  • 0.1.7
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 31 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc