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

nameKeyfunction

A text folded to compare, as findName does: lower case, no accents, Greek letters spelt out and one space, a superscript as its digit; M 31, Messier 31 and m31 give m31, NGC 0224 gives ngc224, HR 2061 and hr2061 give hr2061.

Import it

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

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

Definition

function nameKey(text: string): string

Parameters

NameTypeDescription
textstring

Any text.

Returns

string

The key.

Examples

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

console.log(nameKey("Messier 31"), nameKey("α Ori"), nameKey("NGC 0224"));
m31 alpha ori ngc224

What it prints (run when this page was built)

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