1.3.1 • Published 4 years ago

italian-holidays v1.3.1

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

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

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.0.0-rc.1

4 years ago