moment-easter

0.1.1 • Public • Published

moment-easter.js

This plugin provides a way to get the date of Gregorian Easter Sunday for a given year.

How to use?

  • moment.easter(year)
moment.easter(2014).format('YYYY/MM/DD');
// 2014/04/20
  • moment#easter()
moment({y: 2015}).easter().format('YYYY/MM/DD');
// 2015/04/05

Contributing

If you would like to contribute enhancements or fixes, please do the following:

  1. Fork the plugin repository.
  2. Hack on a separate topic branch created from the latest master.
  3. Commit and push the topic branch.
  4. Make a pull request.
  5. Be patient. ;-)

Please note that modications should follow these coding guidelines:

  • Indent is 4 spaces.
  • Code should pass jslint linter.
  • Vertical whitespace helps readability, don’t be afraid to use it.

Thank you for helping out!

Copyright

See LICENSE for details.

Readme

Keywords

Package Sidebar

Install

npm i moment-easter

Weekly Downloads

178

Version

0.1.1

License

MIT

Unpacked Size

7.51 kB

Total Files

5

Last publish

Collaborators

  • zaygraveyard