{"id":18453016,"url":"https://github.com/mcorrell/repubdate","last_synced_at":"2025-04-22T11:55:35.425Z","repository":{"id":57353926,"uuid":"97761336","full_name":"mcorrell/repubdate","owner":"mcorrell","description":"Date conversion and display for the French Republican Calendar","archived":false,"fork":false,"pushed_at":"2019-01-08T23:55:09.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T18:55:30.512Z","etag":null,"topics":["date","date-formatting","equality","fraternity","liberty"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcorrell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-19T21:08:24.000Z","updated_at":"2022-10-16T15:24:44.000Z","dependencies_parsed_at":"2022-09-05T13:01:58.182Z","dependency_job_id":null,"html_url":"https://github.com/mcorrell/repubdate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcorrell%2Frepubdate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcorrell%2Frepubdate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcorrell%2Frepubdate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcorrell%2Frepubdate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcorrell","download_url":"https://codeload.github.com/mcorrell/repubdate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237815,"owners_count":21397400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","date-formatting","equality","fraternity","liberty"],"created_at":"2024-11-06T07:35:03.420Z","updated_at":"2025-04-22T11:55:35.398Z","avatar_url":"https://github.com/mcorrell.png","language":"JavaScript","readme":"# repubdate\n\nA package to allow Javscript Date objects to report the date in the style of the [French Republican Calendar](https://en.wikipedia.org/wiki/French_Republican_Calendar). The calendar was active for only twelve years, from 1793-1805, and it is unclear how it was meant to be extended to the current day. We use the [Romme System](https://en.wikipedia.org/wiki/French_Republican_Calendar#Converting_from_the_Gregorian_Calendar) to calculate the date for years outside of the bounds of the extant use of the calendar.\n\n## Installation ##\n\nInstall using `npm`:\n\n$ npm install repubdate\n\n## Usage ##\n\nrepubdate creates a method, `toRevolutionaryString`, in the standard javascript Date object.\n\n```javascript\nrequire('repubdate');\nvar napoleoncoup = new Date(\"11-9-1799\");\nconsole.log(napoleoncoup.toRevolutionaryString());\n//outputs \"18 Brumaire, an VIII\n```\n\n`toRevolutionaryString` can take an optional `mode` parameter, for other formats.\n\n`short` uses short names for the months.\n\n```javascript\nrequire('repubdate');\nvar napoleoncoup = new Date(\"11-9-1799\");\nconsole.log(napoleoncoup.toRevolutionaryString(\"short\"));\n//outputs \"18 Bru, VIII\"\n```\n\n`verbose` uses the full name, includes the name of the day within the Décade, as well as the item, animal, or plant that is to be celebrated on that day.\n\n```javascript\nrequire('repubdate');\nvar napoleoncoup = new Date(\"11-9-1799\");\nconsole.log(napoleoncoup.toRevolutionaryString(\"verbose\"));\n//outputs \"Octidi 18 Brumaire, année de la République VIII, le jour du Dentelaire\"\n```\n\n`english` is the verbose string, but in English rather than French.\n\n```javascript\nrequire('repubdate');\nvar napoleoncoup = new Date(\"11-9-1799\");\nconsole.log(napoleoncoup.toRevolutionaryString(\"english\"));\n//outputs \"Octidi 18 Brumaire, year of the Republic VIII, the day of the Leadworts\"\n```\n\n`numeric` is a short version in DD/MM/YY format.\n\n```javascript\nrequire('repubdate');\nvar napoleoncoup = new Date(\"11-9-1799\");\nconsole.log(napoleoncoup.toRevolutionaryString(\"numeric\"));\n//outputs \"18/2/8\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcorrell%2Frepubdate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcorrell%2Frepubdate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcorrell%2Frepubdate/lists"}