Socket
Socket
Sign inDemoInstall

moment-holiday-fr-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    moment-holiday-fr-plugin

Plugin for [Moment.js](https://momentjs.com/docs/) to manage week-end and holidays (FR)


Version published
Maintainers
1
Created

Readme

Source

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.

FAQs

Last updated on 17 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc