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 names index for the NGC and IC objects that are not Messier objects, in a chunk of their own

import { … } from "@johnmorrisdotca/hoshi-stars/names/ngc-ic";

226.4 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
findNgcIcfunctionThe NGC or IC row a name or number names exactly (NGC 7000, North America Nebula, ic 434), or undefined.
NAME_KINDSconstantThe kinds of row in the names index: star, cluster (open and globular), nebula (emission, reflection, planetary, supernova remnant), galaxy and other (an asterism, a double star Messier listed, a source that is none of those).
nameIndexfunctionAn index over rows: by id, by exact name and by a ranked search.
NameIndextypeWhat an index of rows offers: the rows, one by id, one by any name, and a ranked search.
nameKeyfunctionA 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.
NameKindtypeOne kind of row: star, cluster, nebula, galaxy or other.
NameRowtypeOne row of the names index: a star or a deep-sky object with the names a search box would try, and where to turn the sky to it.
ngcIcRowByIdfunctionOne NGC or IC row by its id (ngc7000, ic434).
ngcIcRowsfunctionThe rows of the NGC and IC objects that are not Messier objects (11,788), brightest first (an object with no magnitude comes after those with one), as a fresh array.
searchNgcIcfunctionThe NGC and IC rows whose names match what was typed, best first (see searchNames).
slugOffunctionAn address-safe id from a text: lower-case ASCII letters and digits in runs joined by one hyphen; an accent is dropped (Boötes gives bootes) and a Greek letter is spelt out (α1 Centauri gives alpha1-centauri).

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