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 · A names index for a search box: a row for each bright star and Messier object with its names in English and Japanese, designations, constellation, rank weight, an address-safe id and where to point, with lookup by id and by name

nameRowByIdfunction

One row by its id (betelgeuse, alpha-orionis, hr-1234, m31): the reverse of the id every row carries.

Import it

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

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";

console.log(nameRowById("m31")?.name.en, nameRowById("nothing"));
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.