1.0.7 • Published 5 days ago

@treker7/practical-astronomy v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
5 days ago

Practical Astronomy - Algorithms Implemented from the Book Practical Astronomy With Your Calculator

Installation:

npm install --save-dev treker7/practical-astronomy

Examples:

var sun = require('./practical-astronomy/services/sun');
var moon = require('./practical-astronomy/services/moon');
var GeographicCoordinate = require("../models/geographicCoorindate");

const myLocation = new GeographicCoordinate(42.37, -71.05);
const myTime = moment();

var riseAndSetTimes = sun.getRiseAndSetTime(myLocation, myTime);
console.log('The sun will rise at: ' + riseAndSetTimes.riseTime);
console.log('The sun will set at: ' + riseAndSetTimes.setTime);

var moonPhase = moon.getPhase(myTime);
console.log('The current moon phase is: ' + moonPhase);
1.0.7

5 days ago

1.0.2

5 days ago

1.0.6

5 days ago

1.0.5

5 days ago

1.0.4

5 days ago

1.0.3

5 days ago

1.0.1

5 years ago

1.0.0

5 years ago