Skip to content

ericnishio/finnish-holidays-js

Repository files navigation

finnish-holidays-js

NPM version Build Status

A library for listing Finnish national holidays. Based on the finnish-holidays Ruby gem.

Setup

$ npm install finnish-holidays-js --save

Usage

import finnishholidays from 'finnish-holidays-js';

finnishholidays.next();
finnishholidays.year(2015);
finnishholidays.month(6, 2015);
finnishholidays.after(12, 2016, 0);
finnishholidays.before(12, 2016, 1);
finnishholidays.translate('Midsummer Eve', 'fi');

Tests

$ npm install -g mocha
$ npm test

License

MIT © Eric Nishio