Socket
Socket
Sign inDemoInstall

moment-ferie-fr

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    moment-ferie-fr

An extension to moment.js that handles working days in France


Version published
Weekly downloads
1.5K
increased by2.05%
Maintainers
1
Install size
4.06 MB
Created
Weekly downloads
 

Readme

Source

Moment-ferie-fr Build Status

Plug-in Moment.js jours feriés en France

exemple utilisation:

var day = moment("9-6-2014", "DD-MM-YYYY");

console.log( day.isFerie() );  // boolean
console.log( day.getFerie() ); // string, 'Pentecôte'

console.log( day.getFerieList() ); // array, liste jours feriés de l'année de day
console.log( moment().getFerieList(2018) );  // array, liste jours feriés de l'année 2018

console.log( day.lundiDePaques() ); // momentObj, jour de paques de l'année de day
console.log( moment().lundiDePaques(2018) ); // momentObj, jour de paques de l'année 2018

/*
idem pour:

  day.paques();
  day.lundiDePaques();
  day.ascension();
  day.pentecote();

  day.jourDeLAn();
  day.feteDuTravail();
  day.victoireDeAllies();
  day.feteNationale();
  day.assomption();
  day.toussaint();
  day.armistice();
  day.noel();
*/

Keywords

FAQs

Last updated on 15 May 2017

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