moment-holiday-fr-plugin

0.3.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i moment-holiday-fr-plugin

Weekly Downloads

1

Version

0.3.0

License

MIT

Unpacked Size

19.1 kB

Total Files

13

Last publish

Collaborators

  • igitscor