0.3.0 • Published 6 years ago

moment-holiday-fr-plugin v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Moment French holidays plugin

Plugin for Moment.js to manage week-end and holidays (FR)

Installing

npm i moment-holiday-fr-plugin [--save]

Usage

Holiday check

import moment from 'moment';
import 'moment-holiday-fr-plugin';

const isWeekend = moment().isWeekEnd();
const isHoliday = moment().isHoliday();
const isWorkingDay = moment().isWorkingDay();

Date helper

import moment from 'moment';
import 'moment-holiday-fr-plugin';

const lastWorkingDay = moment().lastWorkingDay();
const nextWorkingDay = moment().nextWorkingDay();

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. All contributions are welcome. Please make a pull request and make sure things still pass after running npm test. Ensure you've read the contribution guidelines for more information and respect the code of conduct

Licensing

The code in this project is licensed under MIT license.