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

nameIndexfunction

An index over rows: by id, by exact name and by a ranked search. The rows are put in order, largest weight first and the id to break a tie.

Import it

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

Also exported from: @johnmorrisdotca/hoshi-stars/names/named, @johnmorrisdotca/hoshi-stars/names/ngc-ic

Definition

function nameIndex(input: readonly NameRow[]): NameIndex

Parameters

NameTypeDescription
inputreadonly NameRow[]

The rows. Their ids must be unique.

Returns

NameIndex

The lookups.

Examples

import { nameRows, nameIndex } from "@johnmorrisdotca/hoshi-stars/names";

console.log(nameIndex(nameRows().slice(0, 100)).find("Sirius")?.id);
sirius

What it prints (run when this page was built)

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