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 · The Messier objects

DistanceValuetype

A length in the two units the package gives distances in.

Import it

import type { DistanceValue } from "@johnmorrisdotca/hoshi-stars/deep-sky";

Also exported from: @johnmorrisdotca/hoshi-stars/deep-sky/ngc-ic

Definition

interface DistanceValue {
    lightYears: number;
    parsecs: number;
}

Members

NameTypeDescription
lightYearsnumber

The length in light-years.

parsecsnumber

The length in parsecs.

Examples

import { galaxyDistance, type DistanceValue } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";

const away: DistanceValue = galaxyDistance(deepSkyObject("M31")!)!.spread.low;
console.log(away.lightYears, away.parsecs);
2674482.297277295 820000

What it prints (run when this page was built)

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