1.3.3 • Published 6 years ago

hollidays v1.3.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

holidays


Supported countries

  • Slovakia
  • Czech Republic
  • Austria
var holidays = require('holidays');

//get supported countries
holidays.getCountries();
/*
['sk','cz','at]
 */

//initialize for Austria, Kärnten
holidays.setCountry('at','k');

//get supported states of country
holidays.getStates();
/*
[ 'b', 'k', 'n', 'o', 's', 'st', 't', 'v', 'w' ]
*/

//get all holidays for year
holidays.findAll(2018);
/*
[{
         "name": "Deň vzniku Slovenskej republiky",
         "date": "1.1"
     },
     {
         "name": "Zjavenie Pána (Traja králi)",
         "date": "6.1"
     },
     ...]
 */

//find if this day is a holiday
holidays.getByDate(2018,1,1)
/*
{ name: 'Neujahr', date: '1.1' }
*/
1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago