Reference · The 88 constellations, in English and Japanese
starsInfunction
The bright stars that lie in a constellation, brightest first: every star of the Yale Bright Star Catalogue (to magnitude 6.0) whose constellation is that abbreviation, with a Bayer
letter or a Flamsteed number or without one.
Import it
import { starsIn } from "@johnmorrisdotca/hoshi-stars/constellations";
Definition
function starsIn(text: string): Star[]
Parameters
| Name | Type | Description |
|---|---|---|
text | string | The constellation, as the IAU abbreviation ( |
Returns
Star[]
A fresh array of the shared, frozen stars.
Examples
import { starsIn } from "@johnmorrisdotca/hoshi-stars/constellations";
console.log(starsIn("Ori").slice(0, 3).map((s) => s.name ?? s.designation));[ 'Rigel', 'Betelgeuse', 'Bellatrix' ]What it prints (run when this page was built)