-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
26 lines (24 loc) · 780 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
var calendar = require('./lib/calendar');
var finder = require('./lib/finder');
var translator = require('./lib/translator');
var FinnishHolidays = {
next: function(count, includeWeekends) {
return calendar.next(count, includeWeekends);
},
year: function(year, includeWeekends) {
return calendar.byYear(year, includeWeekends);
},
month: function(month, year, includeWeekends) {
return calendar.byMonth(month, year, includeWeekends);
},
translate: function(english, language) {
return translator.translate(english, language);
},
after: function(month, year, index) {
return finder.after(month, year, index);
},
before: function(month, year, index) {
return finder.before(month, year, index);
}
};
module.exports = FinnishHolidays;