Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

darkskyapp/astro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

astro

A library that calculates the position of the sun and moon in the sky.

Installation

Use NPM in the usual way.

npm install

Usage

Methods for calculating positions of the moon are in the lunar submodule; method for calculating positions of the sun, in solar. The top-level astro module contains methods for calculating astronomical times.

const astro = require("astro"),
      lunar = astro.lunar,
      solar = astro.solar;