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

findNamefunction

The row of the small chunk that a name, a designation or an id names exactly, ignoring case, spacing, accents and the Greek letter's spelling (Betelgeuse, alpha Ori, HR 2061, M31, NGC 224, ベテルギウス), or undefined. A text that two rows share finds none.

Import it

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

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

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.