Need private packages and team management tools?Check out npm Teams »

@treker7/practical-astronomy

1.0.1 • Public • Published

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

Installation:

npm install --save-dev practical-astronomy

Usage:

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);

Install

npm i @treker7/practical-astronomy

DownloadsWeekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

58.4 kB

Total Files

20

Last publish

Collaborators

  • avatar