Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · Stars: names, positions, distance and colour

Whentype

A moment: a Date or a number of milliseconds since 1970 (UTC, as JavaScript counts).

Import it

import type { When } from "@johnmorrisdotca/hoshi-stars";

Definition

type When = Date | number;

Examples

import { starPosition, starByName, type When } from "@johnmorrisdotca/hoshi-stars";

const when: When = new Date(Date.UTC(2026, 10, 7));
console.log(starPosition(starByName("Sirius")!, when).declination.toFixed(4));
-16.7251

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.7.0.