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 · Stars: names, positions, distance and colour

starsfunction

The stars to a magnitude, brightest first. The catalogue stops at magnitude 6.0, so the default is all 5,080.

Import it

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

Definition

function stars(options?: { magnitude?: number; }): Star[]

Parameters

NameTypeDescription
options (optional){ magnitude?: number; }

magnitude: the faintest to include (a star of exactly that magnitude is in). Brighter limits give shorter lists: 1 is 15 stars, 4 is 518, 5 is 1,630.

Returns

Star[]

A fresh array of the shared, frozen stars.

Examples

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

console.log(stars().length, stars({ magnitude: 2 }).map((s) => s.name ?? s.designation).slice(0, 3));
5080 [ 'Sirius', 'Canopus', 'Arcturus' ]

What it prints (run when this page was built)

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