Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added moon transits calculations #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JWebCoder
Copy link

I've added the possibility to calculate the moon transits.

var transits = suncalc.moonTransit(moonrise, moonset, lat, lng);

transits will be equal to an object like:
{main: {date}, invert: {date}}

The quantity of differences are because i've executed a little bit of jslint agains the file.

@mourner
Copy link
Owner

mourner commented Feb 3, 2016

Can you bring back the original formatting? I don't see the actual diff.

@JWebCoder
Copy link
Author

I've restored the original format.


// export as AMD module / Node module / browser variable
if (typeof define === 'function' && define.amd) define(SunCalc);
else if (typeof module !== 'undefined') module.exports = SunCalc;
else window.SunCalc = SunCalc;

}());
}());
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JWebCoder Mind to add the newline back where it was 😉 ?

@Hypnos3
Copy link

Hypnos3 commented Mar 13, 2022

published a new version which include this as https://github.com/Hypnos3/suncalc3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants