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 small first chunk of the names index: the 335 stars with a common name and the 110 Messier objects, the same rows as the full index, for a search box that loads about 20 kB first

nameRowByIdfunction

One row of the small chunk by its id (betelgeuse, m31): the same row /names gives for that id; undefined for a star without a common name (alpha-centauri, hr-1234), which is in /names.

Import it

import { nameRowById } from "@johnmorrisdotca/hoshi-stars/names/named";

Definition

function nameRowById(id: string): NameRow | undefined

Parameters

NameTypeDescription
idstring

The id.

Returns

NameRow | undefined

The row, or undefined.

Examples

import { nameRowById } from "@johnmorrisdotca/hoshi-stars/names/named";

console.log(nameRowById("m31")?.name.en, nameRowById("hr-1234"));
Andromeda Galaxy undefined

What it prints (run when this page was built)

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