//node ./example_standalone_node.js
//moment is actually included as internal weekday-calc dependency
WeekDayCalc = require('moment-weekday-calc');

var useIsoWeekday = true;
var calc = new WeekDayCalc([2015,0,1],[2015,11,31],[1,2,3,4,5,6,7],useIsoWeekday);
console.log(calc.calculate());
//node ./example_standalone_node.js
//moment is actually included as internal weekday-calc dependency
WeekDayCalc = require('moment-weekday-calc');

var useIsoWeekday = true;
var exclusions = [[2015,3,6],[2015,3,7]];
var calc = new WeekDayCalc([2015,0,1],[2015,11,31],[1,2,3,4,5,6,7], exclusions, useIsoWeekday);
console.log(calc.calculate());
Fix #4 'standalone' node.js demo