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

deepSkyRowfunction

The row of a deep-sky object. The id is its Messier number, else its NGC, else its IC number, without spaces and in lower case (m31, ngc7000, ic434).

Import it

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

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

Definition

function deepSkyRow(object: DeepSkyObject, constellations: ReadonlyMap<string, NameConstellation>): NameRow

Parameters

NameTypeDescription
objectDeepSkyObject

A deep-sky object from /deep-sky or /deep-sky/ngc-ic.

constellationsReadonlyMap<string, NameConstellation>

The constellations by abbreviation, for the names of the one it lies in.

Returns

NameRow

The row.

Examples

import { constellations } from "@johnmorrisdotca/hoshi-stars/constellations";
import { deepSkyObject } from "@johnmorrisdotca/hoshi-stars/deep-sky";
import { deepSkyRow } from "@johnmorrisdotca/hoshi-stars/names";

const byAbbreviation = new Map(constellations().map((c) => [c.abbreviation, c]));
console.log(deepSkyRow(deepSkyObject("M31")!, byAbbreviation).id);
m31

What it prints (run when this page was built)

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