mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 19:25:16 +00:00
16 lines
351 B
JavaScript
Executable File
16 lines
351 B
JavaScript
Executable File
import * as holidays from "m3o/holidays";
|
|
|
|
// List the holiday dates for a given country and year
|
|
async function GetHolidays() {
|
|
let holidaysService = new holidays.HolidaysService(
|
|
process.env.MICRO_API_TOKEN
|
|
);
|
|
let rsp = await holidaysService.list({
|
|
country_code: "GB",
|
|
year: 2022,
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
await GetHolidays();
|