npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

calendrier-republicain

v0.0.1

Published

This is a converter from the commonly used Gregorian Calendar to the French Republican Calendar

Downloads

4

Readme

Calendrier Républicain

This is a converter from the commonly used Gregorian Calendar to the French Republican Calendar.

It currently only implements the Romme System for recent dates, meaning that it has a shift of one day for sextile years before the year 20 (1811).

npm install calendrier-republicain

History

The French Republican Calendar (French: calendrier républicain français), also commonly called the French Revolutionary Calendar (calendrier révolutionnaire français), was a calendar created and implemented during the French Revolution, and used by the French government for about 12 years from late 1793 to 1805, and for 18 days by the Paris Commune in 1871. The revolutionary system was designed in part to remove all religious and royalist influences from the calendar, and was part of a larger attempt at decimalisation in France (which also included decimal time of day, decimalisation of currency, and metrication).

Wikipédia

Functions

Each function takes a single date object as parameter:

  • year(date) Get the year
  • dayOfYear(date) Get the n-day of the year (between 1 and 366)
  • dayOfYearName(date) Get the name of the day (often plants, animals, or tools associated with the season), in French (translation in english may come if someone is interested)
  • month(date) Get the n-month of the year (between 1 and 13, 13 being the complementary days alias the Sans-culottides days)
  • monthName(date) Get the name of the month
  • dayOfMonth(date) Get the n-day of the month (between 1 and 30)
  • dayOfDecade(date) Get the n-day of the decade (between 1 and 10)
  • dayOfDecadeName(date) Get the name of the day relative to the decade

Example of use

const cal = require('calendrier-republicain');
const someDay = new Date(2017, 2, 27); // 27 March 2017

console.log('Today we are ' +
    cal.dayOfMonth(someDay) + ' ' +
    cal.dayOfDecadeName(someDay) +
    ' of ' + cal.monthName(someDay) +
    ' of the year ' + cal.year(someDay) +
    ', day dedicated to the "' + cal.dayOfYearName(someDay) + '"');
    // Today we are 7 septidi of germinal of the year 225
    // day dedicated to the "bouleau"