Business

  1. npm install moment-business

This is a Moment.js library that allows Moment operations for Western work weeks: 7 day weeks where Saturday and Sundayare non-work days.

For example,

  1. import business from 'moment-business';
  2. // true if the moment is Mon-Fri, false otherwise
  3. business.isWeekDay(someMoment);
  4. // Adds five work days to the Moment
  5. business.addWeekDays(someMoment, 5);

The repository is located at github.com/jmeas/moment-business.