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

namedays-cs

Package Overview
Dependencies
Maintainers
1
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.0.5
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
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

All functions are available in the main module. You can import them like this:

import * as namedays from 'namedays-cs';

Name days

There are basically two functions to get getting name days. The first one returns a string of name days separated by a letter. The second one returns an array of name days.

import {getNameDay, getNameDayArray} from 'namedays-cs';

const date = new Date(2024, 11, 24); // 24. december 2024

// String of name days
getNameDay(date); // Adam a Eva
getNameDay(date, ', '); // Adam, Eva

// Array of name days
getNameDayArray(date); // ['Adam', 'Eva']

It is possible that there are no name days for a given date:

import {getNameDay, getNameDayArray} from 'namedays-cs';

const date = new Date(2024, 11, 25); // 25. december 2024

getNameDay(date); // '' (empty string)
getNameDayArray(date); // [] (empty array)

Credits

License

MIT

Keywords

FAQs

Package last updated on 15 Apr 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