/workdaysperweek

A node.js library for getting the work days in a week.

Primary LanguageJavaScript

work days per week

A node.js module for getting the work days in a week.

install & test

Checkout project with git and run

npm install
npm test

in project root.

usage

The workDays() API returns a list of moment.js objects representing the work days for given country, region and week. Country and state are mandatory. If no week/year given current week/year will be used.

workDays('DE', 'BY');
workDays('DE', 'BY', '14');
workDays('DE', 'BY', '14', 2013);

license

This library was developed by hour1 and is freely distributable under the terms of the MIT license.