# @treker7/practical-astronomy

> Implements Astronomical Calculations Found in the Book Practical Astronomy With Your Calculator

Latest version **1.0.7** (published 2024-05-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @treker7/practical-astronomy
pnpm add @treker7/practical-astronomy
yarn add @treker7/practical-astronomy
bun add @treker7/practical-astronomy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2024-05-07 |
| First published | 2019-08-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 56.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Treker Battig |
| Maintainers | treker7 |
| Keywords | Astronomy, Stars, Planets, Position, Coordinates |

## Links

- npm: https://www.npmjs.com/package/@treker7/practical-astronomy
- Repository: https://github.com/treker7/practical-astronomy
- Homepage: https://github.com/treker7/practical-astronomy#readme
- Issues: https://github.com/treker7/practical-astronomy/issues
- npm.io page: https://npm.io/package/@treker7/practical-astronomy

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.24.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2024-05-07
- 1.0.6 — 2024-05-07
- 1.0.5 — 2024-05-07
- 1.0.4 — 2024-05-07
- 1.0.3 — 2024-05-07
- 1.0.2 — 2024-05-07
- 1.0.1 — 2019-08-06

## README

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

---
_Source: https://npm.io/package/@treker7/practical-astronomy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
