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

findNamefunction

The row a name, a designation or an id names exactly, ignoring case, spacing, accents and the Greek letter's spelling: Betelgeuse, alpha Ori, α Orionis, HR 2061, M31, Messier 31, NGC 224, Andromeda Galaxy, ベテルギウス. A text that two rows share (Alpha Centauri) finds none: use searchNames.

Import it

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

Definition

function findName(text: string): NameRow | undefined

Parameters

NameTypeDescription
textstring

What was typed.

Returns

NameRow | undefined

The row, or undefined.

Examples

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

console.log(findName("alpha Ori")?.id, findName("HR 2061")?.id, findName("NGC 224")?.id);
betelgeuse betelgeuse m31

What it prints (run when this page was built)

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