{"id":20400109,"url":"https://github.com/codebrainz/easterjs","last_synced_at":"2026-04-19T00:02:35.119Z","repository":{"id":139039703,"uuid":"200576384","full_name":"codebrainz/easterjs","owner":"codebrainz","description":"A trivial implementation the calculate the date of Easter Sunday given a year.","archived":false,"fork":false,"pushed_at":"2019-08-05T03:33:43.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T11:48:04.564Z","etag":null,"topics":["date","easter","holiday","javascript","node"],"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/codebrainz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T03:33:27.000Z","updated_at":"2023-04-11T15:26:44.000Z","dependencies_parsed_at":"2023-05-03T10:23:00.944Z","dependency_job_id":null,"html_url":"https://github.com/codebrainz/easterjs","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/codebrainz%2Feasterjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebrainz%2Feasterjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebrainz%2Feasterjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebrainz%2Feasterjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebrainz","download_url":"https://codeload.github.com/codebrainz/easterjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241947959,"owners_count":20047309,"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","easter","holiday","javascript","node"],"created_at":"2024-11-15T04:38:26.342Z","updated_at":"2025-12-04T02:02:19.191Z","avatar_url":"https://github.com/codebrainz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"EasterJS\n========\n\nEasterJS is trivial JavaScript module containing a function to get the date\nof Easter Sunday. It uses the [Anonymous Gregorian algorithm][1] to calculate\nthe date.\n\nThe minified size of the module is only 338 bytes.\n\n[1]: https://en.wikipedia.org/wiki/Computus#Anonymous_Gregorian_algorithm\n\nUsage\n-----\n\nThe module can be used from Node or the browser. You pass a\nnumber - the year - to the `easter` function and it returns a `Date`\nobject representing the date of Easter Sunday for that year.\n\n### Node\n\n```javascript\nconst easter = require('easter.min');\nconsole.log(easter(1970));\n```\n\n### Browser\n\nJust use a `\u003cscript\u003e` tag to include the `easter.js` or `easter.min.js`,\nand then call `easter`, passing the year.\n\nTests\n-----\n\n### Node\n\nIncluded is a simple test program that uses Easter dates I found on\nthe Internet to verify the correct dates are returned. To run the\nscript using Node, run `node test.js` in the source directory. There's\nalso an NPM script in the `package.json` called `test` which runs\nthe minifier before running the test.\n\n### Browser\n\nAlso included is a silly little web page that lets you manually enter\nyears using a form input and it outputs the date in a paragraph tag.\nTo use it, open the `index.html` file in your browser and change\nthe input field value.\n\nRebuilding the Minified version\n-------------------------------\n\nThere's a `minify` NPM script in the `package.json` file you can use\nto re-minify the `easter.js` file, simply run `npm run minify`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrainz%2Feasterjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebrainz%2Feasterjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrainz%2Feasterjs/lists"}