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

italian-holidays

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

italian-holidays

tool to retrieve italian holidays

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

npm (scoped)

ita-holidays

simple tool to retrieve italian holidays
only italian language available (english language coming soon)
only from 2019 to 2023 (for now)
some things are hardcoded af but this is a 10 minutes project, improvements are on their way

usage:
npm install italian-holidays

and in your .js file:
const itaHolidays = require("italian-holidays");
or, for example, if you use it inside an angular app:
import * as itaHolidays from 'italian-holidays'

console.log(itaHolidays.getHolidays(2019, 'it')); this will get an object like this:
{
id: 1,
day: '01/01/2019',
weekDay: 'martedì',
name: 'capodanno'
}

console.log(itaHolidays.getHolidaysOnlyDays(2019));
year is optional
this will get an array of dates formatted like this: DD/MM/YYYY
if year is omitted, the array will include dates from current year to 2023

FAQs

Package last updated on 09 Dec 2019

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