Socket
Socket
Sign inDemoInstall

@sebastien-cleany/moment-ferie-fr

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @sebastien-cleany/moment-ferie-fr

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


Version published
Weekly downloads
16
decreased by-73.77%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Moment-ferie-fr Build Status

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

This is a work from moment-ferie-fr, main changes are:

  • saturday is a working day ("ouvrable" vs "ouvré")
  • "pentecôte" is not a public holyday anymore

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.jourDeLAn();
  day.feteDuTravail();
  day.victoireDeAllies();
  day.feteNationale();
  day.assomption();
  day.toussaint();
  day.armistice();
  day.noel();
*/

Keywords

FAQs

Last updated on 12 Jun 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