UK bank holidays
This package will help you determine when UK bank holidays are, using the Government's feed.
$ npm install --save uk-bank-holidays
;//...let feed = ;await feed;let divisions = feed;// [ 'england-and-wales', 'scotland', 'northern-ireland' ]let scotland = feed;scotland; // all holidays in the feedscotland; // holidays on or after start datescotland; // holidays between the dates (inclusive)
holidays method returns an array of objects that look like this:
title: 'Christmas Day'date: '2017-12-25'notes: ''bunting: true
I have no idea what the
bunting field is for...
This is MIT licensed: feel free to do what you like with it. Comments, suggestions, issues and pull requests welcome.